Skip to content

Commit 96f1e10

Browse files
committed
NewStaticRule - tip with a blogpost link
1 parent a5f9f0c commit 96f1e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Classes/NewStaticRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function processNode(Node $node, Scope $scope): array
4040

4141
$messages = [
4242
RuleErrorBuilder::message('Unsafe usage of new static().')
43-
->tip('Consider making the class or the constructor final.')
43+
->tip('See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static')
4444
->build(),
4545
];
4646
if (!$classReflection->hasConstructor()) {

0 commit comments

Comments
 (0)