Skip to content

Commit b050169

Browse files
committed
[Twig] removed usage of non-namespaced classes
1 parent 15e914c commit b050169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DataCollector/TwigDataCollector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
1717
use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface;
1818
use Twig\Environment;
19+
use Twig\Error\LoaderError;
1920
use Twig\Markup;
2021
use Twig\Profiler\Dumper\HtmlDumper;
2122
use Twig\Profiler\Profile;
@@ -70,7 +71,7 @@ public function lateCollect()
7071
if ($profile->isTemplate()) {
7172
try {
7273
$template = $this->twig->load($name = $profile->getName());
73-
} catch (\Twig_Error_Loader $e) {
74+
} catch (LoaderError $e) {
7475
$template = null;
7576
}
7677

0 commit comments

Comments
 (0)