-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Parsing issues with @image directive. Fatal Error #42
Comments
Any updates or workarounds for this? |
Hi there, probably related to #30 |
After trying many things in Maybe some ideas here, a bit old, not tested, but putting it here as refs:
No time at the moment but will try if I can. Cheers and thanks you @Log1x for the huge and so usefull work you do, as ever. |
Is this issue really solved? I've tried running version 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4 and 2.0.5 but I still get the following error: This is in my blade file:
And this is what it compiles to:
The following:
compiles to:
|
It was supposed to be but v2.0 was a haul so it's possible it got overlooked. I'd appreciate a PR. |
I've run into parsing issues with the @image directive.
Case 1:
When using the directive as follows:
@image($image_id, 'medium', $alt)
The alt attribute is assigned the literal string "$alt" instead of the variable.
The resulting code ends up being...
Case 2:
When using the directive as follows:
@image($image_id, 'medium', ['alt' => $alt, class='alignright'] )
This one results in a Fatal Error
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected '','' (T_CONSTANT_ENCAPSED_STRING), expecting ']'
The resulting code is...
The text was updated successfully, but these errors were encountered: