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
{{ message }}
Repository navigation
Commit b2bf1c3
Browse filesBrowse the repository at this point in the historyBrowse files
privateconststringERROR_MESSAGE = 'Return type "%s" is broader than the returned union param "%s". Add a @template generic to narrow the return type to the passed one.';
33
+
privateconststringERROR_MESSAGE = 'Return type "%s" is too broad for a returned union param. Declare the explicit union return type "%s" instead.';
34
34
35
35
publicfunctiongetNodeType(): string
36
36
{
@@ -43,11 +43,6 @@ public function getNodeType(): string
$expectedErrorMessage = 'Return type "PhpParser\Node" is too broad for a returned union param. Declare the explicit union return type "MethodCall|New_|null" instead.';
Copy file name to clipboardExpand all lines: utils/phpstan/tests/Rule/PreferGenericTemplateOnReturnedUnionParamRule/PreferGenericTemplateOnReturnedUnionParamRuleTest.php
0 commit comments