Skip to content

Commit 01b2144

Browse files
phpstan-botclaude
andcommitted
Fix coding standard: use sprintf() instead of variable in double-quoted string
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 784b42b commit 01b2144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2822,7 +2822,7 @@ public function testBug4608(): void
28222822
$paramName = PHP_VERSION_ID >= 80000 ? 'callback' : 'function';
28232823
$this->analyse([__DIR__ . '/data/bug-4608-call-user-func.php'], [
28242824
[
2825-
"Parameter #1 \${$paramName} of function call_user_func expects callable(): mixed, array{class@anonymous/tests/PHPStan/Rules/Functions/data/bug-4608-call-user-func.php:5, 'abc'|'not_abc'} given.",
2825+
sprintf("Parameter #1 \$%s of function call_user_func expects callable(): mixed, array{class@anonymous/tests/PHPStan/Rules/Functions/data/bug-4608-call-user-func.php:5, 'abc'|'not_abc'} given.", $paramName),
28262826
11,
28272827
],
28282828
]);

0 commit comments

Comments
 (0)