Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cb8fc2

Browse files
VincentLangletondrejmirtes
authored andcommitted
Remove duplicate method in error message
1 parent afe24f0 commit 1cb8fc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/Rules/Methods/CallStaticMethodsRule.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function processSingleMethodCall(Scope $scope, StaticCall $node, string
102102
'%s of ' . $lowercasedMethodName . ' expects %s, %s given.',
103103
'Result of ' . $lowercasedMethodName . ' (void) is used.',
104104
'%s of ' . $lowercasedMethodName . ' is passed by reference, so it expects variables only.',
105-
'Unable to resolve the template type %s in call to method ' . $lowercasedMethodName,
105+
'Unable to resolve the template type %s in call to ' . $lowercasedMethodName,
106106
'Missing parameter $%s in call to ' . $lowercasedMethodName . '.',
107107
'Unknown parameter $%s in call to ' . $lowercasedMethodName . '.',
108108
'Return type of call to ' . $lowercasedMethodName . ' contains unresolvable type.',

‎tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public function testTemplateTypeInOneBranchOfConditional(): void
568568
"Offset 'wrapperClass' (class-string<TemplateTypeInOneBranchOfConditional\Connection>) does not accept type string.",
569569
],
570570
[
571-
'Unable to resolve the template type T in call to method static method TemplateTypeInOneBranchOfConditional\DriverManager::getConnection()',
571+
'Unable to resolve the template type T in call to static method TemplateTypeInOneBranchOfConditional\DriverManager::getConnection()',
572572
27,
573573
'See: https://phpstan.org/blog/solving-phpstan-error-unable-to-resolve-template-type',
574574
],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /