You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/phpstan/rules/DisallowDynamicNewRule.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function processNode(Node $node, Scope $scope) : array{
45
45
return [
46
46
RuleErrorBuilder::message("Dynamic new is not allowed.")
47
47
->tip("For factories, use closures instead. Closures can implement custom logic, are statically analyzable, and don't restrict the constructor signature.")
0 commit comments