We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f1e10 commit 1aa8ebcCopy full SHA for 1aa8ebc
tests/PHPStan/Rules/Classes/NewStaticRuleTest.php
@@ -18,7 +18,7 @@ protected function getRule(): Rule
18
public function testRule(): void
19
{
20
$error = 'Unsafe usage of new static().';
21
- $tipText = 'Consider making the class or the constructor final.';
+ $tipText = 'See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static';
22
$this->analyse([__DIR__ . '/data/new-static.php'], [
23
[
24
$error,
0 commit comments