Skip to content

Commit e76e963

Browse files
author
Denis Brumann
committed
Fixes typo in error message.
1 parent 0cf976a commit e76e963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ErrorRenderer/TwigErrorRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TwigErrorRenderer implements ErrorRendererInterface
3737
public function __construct(Environment $twig, HtmlErrorRenderer $fallbackErrorRenderer = null, $debug = false)
3838
{
3939
if (!\is_bool($debug) && !\is_callable($debug)) {
40-
throw new \TypeError(sprintf('Argument 2 passed to %s() must be a boolean or a callable, %s given.', __METHOD__, \is_object($debug) ? \get_class($debug) : \gettype($debug)));
40+
throw new \TypeError(sprintf('Argument 3 passed to %s() must be a boolean or a callable, %s given.', __METHOD__, \is_object($debug) ? \get_class($debug) : \gettype($debug)));
4141
}
4242

4343
$this->twig = $twig;

0 commit comments

Comments
 (0)