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

Test case for implicit loop context #54

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AJenbo
Copy link
Collaborator

@AJenbo AJenbo commented May 3, 2023

This highlights the issue where variables created dynamically are not scoped in to @includes() automatically.

As a workaround users can change there code to:

@foreach($foos as $value)
	@include('loop', ['value' => $value])
@endforeach

@AJenbo AJenbo force-pushed the implicit-loop-context branch from df679c5 to 1edfb72 Compare May 4, 2023 08:52
@AJenbo AJenbo force-pushed the implicit-loop-context branch from 1edfb72 to 146e44f Compare September 2, 2024 15:15
@AJenbo AJenbo marked this pull request as draft September 2, 2024 15:19
@AJenbo AJenbo added the good first issue Good for newcomers label Sep 2, 2024
@AJenbo AJenbo force-pushed the implicit-loop-context branch from 146e44f to c3d2098 Compare September 2, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant