-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TwigComponent] Undefined var $name
in ComponentExtension ?
#1115
Comments
Looks like a bug to me. Either we need to change the catch logic or or pass the name to the method. I don't know the context of this logic off the top of my head. @sneakyvv? |
Same thing @kbond :) I'd code that, but i have no idea how to test that correctly, with LiveComponents, ...
|
Did you hit this try...catch and get an |
Hmm where ? Around this one or in throwRuntimeError ? Sorry i'm not sure how to handle that.. :| |
I'm just wondering how you stumbled upon this bug. Just by looking at code or did an app actually run this and throw an exception. (I'm trying to gauge how important it is to require the name here - can we just remove the try catch and let the caught exception be thrown as normal?) |
Reading code, and PhpStorm alerted me with some red wavy line :) |
I have to leave, i can try your solution in a couple of hours |
In TwigComponent/src/Twig/ComponentExtension, there is this method
I fear this won't work as
$name
is not defined... or am I missing something ?The text was updated successfully, but these errors were encountered: