Skip to content
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 @foreach in code comments #17813

Closed
mapodev opened this issue Feb 7, 2017 · 3 comments
Closed

Parsing @foreach in code comments #17813

mapodev opened this issue Feb 7, 2017 · 3 comments

Comments

@mapodev
Copy link

mapodev commented Feb 7, 2017

  • Laravel Version: 5.3.1
  • PHP Version: 5.6
  • Database Driver & Version: MySQL

Description:

If leaving foreach() without parameters in blade comments

{{-- foreach() --}}

is causing a parsing Fatal Error.

@mikromika
Copy link

{{--*/         @foreach ()     /*--}}
{{--*/         @endforeach     /*--}}

try this way, works for me.

@mapodev
Copy link
Author

mapodev commented Feb 9, 2017

That's not the point. It should not eval the code inside blade comments. So doesn't PHP.

@devcircus
Copy link
Contributor

See explanation in #16688
Blade Extends Bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants