Fixes typo in error message.

This commit is contained in:
Denis Brumann 2020-02-14 09:11:12 +01:00
parent 7a6e3c07b3
commit 8f2fbf6e2c
No known key found for this signature in database
GPG Key ID: 69F30FACCE825A1A

View File

@ -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;