Skip to content

Commit

Permalink
Fixes typo in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Brumann committed Feb 14, 2020
1 parent 0cf976a commit e76e963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ErrorRenderer/TwigErrorRenderer.php
Expand Up @@ -37,7 +37,7 @@ class TwigErrorRenderer implements ErrorRendererInterface
public function __construct(Environment $twig, HtmlErrorRenderer $fallbackErrorRenderer = null, $debug = false)
{
if (!\is_bool($debug) && !\is_callable($debug)) {
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)));
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)));
}

$this->twig = $twig;
Expand Down

0 comments on commit e76e963

Please sign in to comment.