Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:7.xfrom
Gummibeer:patch-1
Jun 23, 2020
Merged

[7.x] Fix "Undefined variable: current" exception#33308
taylorotwell merged 1 commit into
laravel:7.xfrom
Gummibeer:patch-1

Conversation

@Gummibeer

Copy link
Copy Markdown
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

mstaack commented Jun 23, 2020

Copy link
Copy Markdown
Contributor

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