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:
parent
f87e2ae4fc
commit
c4648673bf
@ -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];
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user