Skip to content

Commit 578d514

Browse files
Dont call sprintf() when no placeholders are used
1 parent 571df80 commit 578d514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/ContainerDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ protected function getContainerBuilder()
167167
}
168168

169169
if (!$this->getApplication()->getKernel()->isDebug()) {
170-
throw new \LogicException(sprintf('Debug information about the container is only available in debug mode.'));
170+
throw new \LogicException('Debug information about the container is only available in debug mode.');
171171
}
172172

173173
if (!is_file($cachedFile = $this->getContainer()->getParameter('debug.container.dump'))) {
174-
throw new \LogicException(sprintf('Debug information about the container could not be found. Please clear the cache and try again.'));
174+
throw new \LogicException('Debug information about the container could not be found. Please clear the cache and try again.');
175175
}
176176

177177
$container = new ContainerBuilder();

0 commit comments

Comments
 (0)