Skip to content

Commit

Permalink
NewStaticRule - tip with a blogpost link
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 13, 2021
1 parent a5f9f0c commit 96f1e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/Classes/NewStaticRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function processNode(Node $node, Scope $scope): array

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

0 comments on commit 96f1e10

Please sign in to comment.