Avoid errors when failing to guess the template info for an error

This commit is contained in:
Christophe Coevoet
2025-09-02 14:21:58 +02:00
committed by GitHub
parent 8832f6327c
commit 62747cee27
+4
View File
@@ -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();