Skip to content

Commit fe076a9

Browse files
committed
bug #1117 [TwigComponent] Remove undefined var $name in ComponentExtension (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [TwigComponent] Remove undefined var $name in ComponentExtension | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | Fix #1115 | License | MIT Implement the solution suggested by `@kbond` here: #1115 (comment) Commits ------- 912658d [TwigComponent] Remove undefined var $name in ComponentExtension
2 parents 2e08324 + 912658d commit fe076a9

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)