-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Exception thrown when using 'is defined' inside {{ }} in Volt #14476
Comments
Confirmed, although it does work within the
|
Well as i see @sergeyklay was doing some changes to volt parsers etc lately so maybe it was some of his change? |
same for me {{ uploadedPhoto is user.avatar ? 'checked="checked"' : '' }} Syntax error, unexpected token IDENTIFIER(is) in /....../views/registered/widgets/avatar.twig on line 31 |
@elcreator What version of Phalcon do you use? |
Version | 4.0.0-rc.3 |
as temporary fix I have replaced "is" with "==" |
The same for me Version | 4.0.0-rc.3 |
What's the status on this? We have a lot of code written for v4.0.0-rc.1 and we can't update to the latest version since this will imply rewriting A LOT of code. Do you expect this to be fixed any time soon, or should we go ahead and rewrite everything? |
@madrian-es I'll try to sort out ASAP |
Status update: I fixed the issue. Thinking about better internal implementation |
Fixed in #14909 |
In Volt (using
Phalcon\Mvc\Volt\Simple
) I sometimes using shorthand notation for IF/ELSE like:In Phalcon 3.4 all is fine, but it is broken in 4.0.0-rc.1, where I get
The text was updated successfully, but these errors were encountered: