From 96f1e106bd10f754b304d874493df14613529607 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Wed, 13 Jan 2021 14:00:28 +0100 Subject: [PATCH] NewStaticRule - tip with a blogpost link --- src/Rules/Classes/NewStaticRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rules/Classes/NewStaticRule.php b/src/Rules/Classes/NewStaticRule.php index f77485cad8..e93c93f68c 100644 --- a/src/Rules/Classes/NewStaticRule.php +++ b/src/Rules/Classes/NewStaticRule.php @@ -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()) {