1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Rename @suppress to @psalm-suppress

This commit is contained in:
Matthew Brown 2016-10-11 14:17:55 -04:00
parent f87e2ae4fc
commit c4648673bf
4 changed files with 6 additions and 6 deletions

View File

@ -96,8 +96,8 @@ class CommentChecker
$info['deprecated'] = true;
}
if (isset($comments['specials']['suppress'])) {
foreach ($comments['specials']['suppress'] as $suppress_entry) {
if (isset($comments['specials']['psalm-suppress'])) {
foreach ($comments['specials']['psalm-suppress'] as $suppress_entry) {
$info['suppress'][] = preg_split('/[\s]+/', $suppress_entry)[0];
}
}

View File

@ -2526,7 +2526,7 @@ class StatementsChecker
/**
* @return false|null
* @suppress MixedMethodCall - some funky logic here
* @psalm-suppress MixedMethodCall - some funky logic here
*/
protected function checkArrayAssignment(PhpParser\Node\Expr\ArrayDimFetch $stmt, Context $context, Type\Union $assignment_value_type)
{

View File

@ -12,7 +12,7 @@ abstract class Plugin
* @param Context $context
* @param string $file_name
* @return null|false
* @suppress InvalidReturnType
* @psalm-suppress InvalidReturnType
*/
public function checkExpression(PhpParser\Node\Expr $stmt, Context $context, $file_name)
{
@ -25,7 +25,7 @@ abstract class Plugin
* @param Context $context
* @param string $file_name
* @return null|false
* @suppress InvalidReturnType
* @psalm-suppress InvalidReturnType
*/
public function checkStatement(PhpParser\Node $stmt, Context $context, $file_name)
{

View File

@ -39,7 +39,7 @@ class IssueSuppressionTest extends PHPUnit_Framework_TestCase
class A{
/**
* @suppress UndefinedClass
* @psalm-suppress UndefinedClass
*/
public function a() {
B::foo()->bar()->bat()->baz()->bam()->bas()->bee()->bet()->bes()->bis();