Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Rules/Methods/CallStaticMethodsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private function processSingleMethodCall(Scope $scope, StaticCall $node, string
'%s of ' . $lowercasedMethodName . ' expects %s, %s given.',
'Result of ' . $lowercasedMethodName . ' (void) is used.',
'%s of ' . $lowercasedMethodName . ' is passed by reference, so it expects variables only.',
'Unable to resolve the template type %s in call to method ' . $lowercasedMethodName,
'Unable to resolve the template type %s in call to ' . $lowercasedMethodName,
'Missing parameter $%s in call to ' . $lowercasedMethodName . '.',
'Unknown parameter $%s in call to ' . $lowercasedMethodName . '.',
'Return type of call to ' . $lowercasedMethodName . ' contains unresolvable type.',
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function testTemplateTypeInOneBranchOfConditional(): void
"Offset 'wrapperClass' (class-string<TemplateTypeInOneBranchOfConditional\Connection>) does not accept type string.",
],
[
'Unable to resolve the template type T in call to method static method TemplateTypeInOneBranchOfConditional\DriverManager::getConnection()',
'Unable to resolve the template type T in call to static method TemplateTypeInOneBranchOfConditional\DriverManager::getConnection()',
27,
'See: https://phpstan.org/blog/solving-phpstan-error-unable-to-resolve-template-type',
],
Expand Down
Loading