diff --git a/src/Error/Error.php b/src/Error/Error.php index 22ec219e9..97ed2df99 100644 --- a/src/Error/Error.php +++ b/src/Error/Error.php @@ -148,6 +148,10 @@ class Error extends \Exception } } + if (null === $template) { + return; // Impossible to guess the info as the template was not found in the backtrace + } + $r = new \ReflectionObject($template); $file = $r->getFileName();