Skip to content

Commit 0ede1ee

Browse files
kbondweaverryan
andauthored
Update src/TwigComponent/src/ComponentRenderer.php
Co-authored-by: Ryan Weaver <[email protected]>
1 parent 6284de1 commit 0ede1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/src/ComponentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function render(object $component): string
3232
{
3333
// TODO: Self-Rendering components?
3434
if (!$attribute = AsTwigComponent::forClass($component::class)) {
35-
throw new \InvalidArgumentException(sprintf('"%s" is not a Twig Component, did you forget to add the TwigComponent attribute?', $component::class));
35+
throw new \InvalidArgumentException(sprintf('"%s" is not a Twig Component, did you forget to add the AsTwigComponent attribute?', $component::class));
3636
}
3737

3838
return $this->twig->render($attribute->getTemplate(), ['this' => $component]);

0 commit comments

Comments
 (0)