Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7411222
InvalidDeprecationMessageSniff.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
InvalidDeprecationMessageSniff.php
View Options
<?php
/**
* Test fixture.
*
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
*/
namespace
Fixtures\Sniffs\DeprecatedInvalid
;
use
PHP_CodeSniffer\Files\File
;
use
PHP_CodeSniffer\Sniffs\DeprecatedSniff
;
use
PHP_CodeSniffer\Sniffs\Sniff
;
use
stdClass
;
class
InvalidDeprecationMessageSniff
implements
Sniff
,
DeprecatedSniff
{
public
function
getDeprecationVersion
()
{
return
'dummy'
;
}
public
function
getRemovalVersion
()
{
return
'dummy'
;
}
public
function
getDeprecationMessage
()
{
return
new
stdClass
;
}
public
function
register
()
{
return
[
T_WHITESPACE
];
}
public
function
process
(
File
$phpcsFile
,
$stackPtr
)
{
// Do something.
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 23:29 (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/d7/b67c76335284c2d5913cd862462d
Default Alt Text
InvalidDeprecationMessageSniff.php (758 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment