diff --git a/tests/PHPStan/Rules/Classes/NewStaticRuleTest.php b/tests/PHPStan/Rules/Classes/NewStaticRuleTest.php index e6efd12d79..27ad2a84b6 100644 --- a/tests/PHPStan/Rules/Classes/NewStaticRuleTest.php +++ b/tests/PHPStan/Rules/Classes/NewStaticRuleTest.php @@ -48,12 +48,12 @@ public function testBug9654(): void $errors = []; if (PHP_VERSION_ID < 80000) { $errors[] = [ - 'Unsafe usage of new static()', + 'Unsafe usage of new static().', 11, 'See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static', ]; $errors[] = [ - 'Unsafe usage of new static()', + 'Unsafe usage of new static().', 11, 'See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static', ];