diff --git a/src/Psalm/Checker/CommentChecker.php b/src/Psalm/Checker/CommentChecker.php index d67fe00b3..8346cc97f 100644 --- a/src/Psalm/Checker/CommentChecker.php +++ b/src/Psalm/Checker/CommentChecker.php @@ -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]; } } diff --git a/src/Psalm/Checker/StatementsChecker.php b/src/Psalm/Checker/StatementsChecker.php index f82e11d20..018c78aff 100644 --- a/src/Psalm/Checker/StatementsChecker.php +++ b/src/Psalm/Checker/StatementsChecker.php @@ -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) { diff --git a/src/Psalm/Plugin.php b/src/Psalm/Plugin.php index b5e91913c..eab0937fd 100644 --- a/src/Psalm/Plugin.php +++ b/src/Psalm/Plugin.php @@ -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) { diff --git a/tests/IssueSuppressionTest.php b/tests/IssueSuppressionTest.php index 7d766464d..71b0fa385 100644 --- a/tests/IssueSuppressionTest.php +++ b/tests/IssueSuppressionTest.php @@ -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();