Skip to content

Commit 912658d

Browse files
committed
[TwigComponent] Remove undefined var $name in ComponentExtension
1 parent 7412bd2 commit 912658d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/TwigComponent/src/Twig/ComponentExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ public function embeddedContext(string $name, array $props, array $context, stri
8282

8383
public function finishEmbeddedComponentRender(): void
8484
{
85-
try {
86-
$this->container->get(ComponentRenderer::class)->finishEmbeddedComponentRender();
87-
} catch (\Throwable $e) {
88-
$this->throwRuntimeError($name, $e);
89-
}
85+
$this->container->get(ComponentRenderer::class)->finishEmbeddedComponentRender();
9086
}
9187

9288
private function throwRuntimeError(string $name, \Throwable $e): void

0 commit comments

Comments
 (0)