Skip to content

Commit dd5a03a

Browse files
committed
minor symfony#24651 Fix an invalid printf format string in symfony 4 test case (TysonAndre)
This PR was merged into the 4.0-dev branch. Discussion ---------- 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 | Q | A | ------------- | --- | Branch? | master | Bug fix? | no (test) | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | Commits ------- d0ce099 Fix an invalid printf format string in symfony 4 test case
2 parents 2b725ca + d0ce099 commit dd5a03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/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)