Page MenuHomeWickedGov Phorge

InvalidDeprecationMessageSniff.php
No OneTemporary

Size
758 B
Referenced Files
None
Subscribers
None

InvalidDeprecationMessageSniff.php

<?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

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)

Event Timeline