Fixes typo in error message.
This commit is contained in:
parent
7a6e3c07b3
commit
8f2fbf6e2c
@ -37,7 +37,7 @@ class TwigErrorRenderer implements ErrorRendererInterface
|
|||||||
public function __construct(Environment $twig, HtmlErrorRenderer $fallbackErrorRenderer = null, $debug = false)
|
public function __construct(Environment $twig, HtmlErrorRenderer $fallbackErrorRenderer = null, $debug = false)
|
||||||
{
|
{
|
||||||
if (!\is_bool($debug) && !\is_callable($debug)) {
|
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;
|
$this->twig = $twig;
|
||||||
|
Reference in New Issue
Block a user