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

Foreach returning error #179

Open
ghost opened this issue Jul 29, 2023 · 2 comments
Open

Foreach returning error #179

ghost opened this issue Jul 29, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 29, 2023

Hi,

I am looping through an array using @foreach but it throughs this error:

syntax error, unexpected token ";"

The compiled file shows $__currentLoopData = ;

Any ideas what could be causing this, or is it a bug?

@reindert-vetter
Copy link

Do you still have this problem? If this problem has already been resolved, this issue can be closed.

Can you share an example data? @foreach is not enough. This must be done with a variable, for example: @foreach($items as $item).

@ghost
Copy link
Author

ghost commented Sep 10, 2023

No I had to use a standard for loop, the foreach did have an array assigned. I am busy at the moment, but when I have time I will send across the full code.

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

1 participant