Skip to content

Commit 497fd28

Browse files
committed
Fix an invalid printf format string in symfony 4 test case
`%1$::` should be `%1$s::` (`1$` means the first parameter, `s` meaning string) Detected by static analysis
1 parent fa7ea46 commit 497fd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/KernelTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class KernelTestCase extends TestCase
3838
protected static function getKernelClass()
3939
{
4040
if (!isset($_SERVER['KERNEL_CLASS']) && !isset($_ENV['KERNEL_CLASS'])) {
41-
throw new \LogicException(sprintf('You must set the KERNEL_CLASS environment variable to the fully-qualified class name of your Kernel in phpunit.xml / phpunit.xml.dist or override the %1$::createKernel() or %1$::getKernelClass() method.', static::class));
41+
throw new \LogicException(sprintf('You must set the KERNEL_CLASS environment variable to the fully-qualified class name of your Kernel in phpunit.xml / phpunit.xml.dist or override the %1$s::createKernel() or %1$s::getKernelClass() method.', static::class));
4242
}
4343

4444
if (!class_exists($class = $_SERVER['KERNEL_CLASS'] ?? $_ENV['KERNEL_CLASS'])) {

0 commit comments

Comments
 (0)