We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e914c commit b050169Copy full SHA for b050169
DataCollector/TwigDataCollector.php
@@ -16,6 +16,7 @@
16
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
17
use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface;
18
use Twig\Environment;
19
+use Twig\Error\LoaderError;
20
use Twig\Markup;
21
use Twig\Profiler\Dumper\HtmlDumper;
22
use Twig\Profiler\Profile;
@@ -70,7 +71,7 @@ public function lateCollect()
70
71
if ($profile->isTemplate()) {
72
try {
73
$template = $this->twig->load($name = $profile->getName());
- } catch (\Twig_Error_Loader $e) {
74
+ } catch (LoaderError $e) {
75
$template = null;
76
}
77
0 commit comments