Skip to content

Commit 79bc233

Browse files
committed
[TwigBundle] fixed typo
1 parent d2840aa commit 79bc233

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/TwigBundle/TwigEngine.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function exists($name)
6868
{
6969
try {
7070
$this->load($name);
71-
} catch (\Twig_Error_Loader $e) {
71+
} catch (\InvalidArgumentException $e) {
7272
return false;
7373
}
7474

@@ -133,6 +133,5 @@ protected function load($name)
133133
} catch (\Twig_Error_Loader $e) {
134134
throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
135135
}
136-
137136
}
138137
}

0 commit comments

Comments
 (0)