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

[7.x] Fix "Undefined variable: current" exception #33308

Merged
merged 1 commit into from
Jun 23, 2020
Merged

[7.x] Fix "Undefined variable: current" exception #33308

merged 1 commit into from
Jun 23, 2020

Conversation

Gummibeer
Copy link
Contributor

It seems like after merging some different PRs the $current got into the v7 branch which has changed to $attribute instead of $current.
This results in an exception thrown:

ErrorException: Undefined variable: current
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php#1402

This PR fixes the usage of $current for v7 branch.

ErrorException: Undefined variable: current
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php#1402
@taylorotwell taylorotwell merged commit b5d248c into laravel:7.x Jun 23, 2020
@Gummibeer Gummibeer deleted the patch-1 branch June 23, 2020 15:21
@mstaack
Copy link
Contributor

mstaack commented Jun 23, 2020

sweet :)

@GrahamCampbell GrahamCampbell changed the title fix "Undefined variable: current" exception [7.x] Fix "Undefined variable: current" exception Jun 23, 2020
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

Successfully merging this pull request may close these issues.

3 participants