diff --git a/src/Hooks/TestCaseHandler.php b/src/Hooks/TestCaseHandler.php index eed29ba..4fa4098 100644 --- a/src/Hooks/TestCaseHandler.php +++ b/src/Hooks/TestCaseHandler.php @@ -572,7 +572,10 @@ private static function queueClassLikeForScanning( if (method_exists($codebase, 'queueClassLikeForScanning')) { $codebase->queueClassLikeForScanning($fq_class_name); } else { - /** @psalm-suppress InvalidScalarArgument */ + /** + * @psalm-suppress InvalidScalarArgument + * @psalm-suppress InvalidArgument + */ $codebase->scanner->queueClassLikeForScanning($fq_class_name, $file_path); } } diff --git a/tests/acceptance/Prophecy.feature b/tests/acceptance/Prophecy.feature index 98bcd9e..7fc69c6 100644 --- a/tests/acceptance/Prophecy.feature +++ b/tests/acceptance/Prophecy.feature @@ -89,8 +89,8 @@ Feature: Prophecy """ When I run Psalm Then I see these errors - | Type | Message | - | InvalidScalarArgument | Argument 1 of Prophecy\Argument::that expects callable(mixed...):bool, Closure():string(hello) provided | + | Type | Message | + | InvalidScalarArgument | /Argument 1 of Prophecy\\Argument::that expects callable\(mixed...\):bool, (pure-)?Closure\(\):string\(hello\) provided/ | And I see no other errors Scenario: prophesize() provided by ProphecyTrait is generic diff --git a/tests/acceptance/TestCase.feature b/tests/acceptance/TestCase.feature index d987ccf..34774c3 100644 --- a/tests/acceptance/TestCase.feature +++ b/tests/acceptance/TestCase.feature @@ -142,8 +142,8 @@ Feature: TestCase """ When I run Psalm Then I see these errors - | Type | Message | - | MissingConstructor | NS\MyTestCase has an uninitialized variable $this->i, but no constructor | + | Type | Message | + | MissingConstructor | /NS\\MyTestCase has an uninitialized (variable\|property) \$this->i, but no constructor/ | And I see no other errors Scenario: Missing data provider is reported