Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

PR #56706 replaces some instances of reset with array_last.

The author of that PR mentioned this was an oversight and should be corrected. See: #56706 (comment)

@AhmedAlaa4611
Copy link
Contributor Author

@rodrigopedra I would appreciate if you could review this before merging.

@AhmedAlaa4611 AhmedAlaa4611 changed the title [12.x] Fix use array_first and array_las [12.x] Fix use array_first and array_last Aug 28, 2025
Copy link
Contributor

@rodrigopedra rodrigopedra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't approve, but it looks good to me.

I made this table to follow along:

File#Line Original PR #56706 Correct? PR #56820
Arr#640 end array_last YES --
Collections/helpers#206 reset array_first YES --
Collections/helpers#219 end array_last YES --
Schedule#337 end array_last YES --
Schedule#479 end array_last YES --
Container#1289 end array_last YES --
Container#1649 end array_last YES --
Connection#372 reset array_last NO FIXED
Eloquent\Builder#510 reset array_first YES --
Eloquent\Builder#1268 reset array_first YES --
Eloquent\Builder#1273 reset array_first YES --
Eloquent\Builder#1369 end array_last YES --
Eloquent\Collection#243 end array_last YES --
HasOneOrMany#294 reset array_first YES --
HasOneOrMany#584 end array_last YES --
MorphOneOrMany#119 reset array_last NO FIXED
Query\Builder#3133 reset array_first YES --
Query\Builder#3145 reset array_first YES --
Query\Builder#3161 reset array_last NO FIXED
Query\Builder#3784 reset array_last NO FIXED
Query\Builder#3821 reset array_last NO FIXED
Query\Builder#3979 reset array_last NO FIXED
Query\Builder#3990 reset array_last NO FIXED
Query\Grammar#433 reset array_first YES --
Query\Grammar#435 end array_last YES --
Query\Grammar#451 reset array_first YES --
Query\Grammar#453 end array_last YES --
Query\Grammar#469 reset array_first YES --
Query\Grammar#471 end array_last YES --
Query\Grammar#1189 reset array_last NO FIXED
Query\Grammar#1193 reset array_last NO FIXED
Query\SqlServerGrammar#418 reset array_last NO FIXED
Schema\Grammar#390 reset array_last NO FIXED
BroadcastInstallCommand#344 end array_last YES --
Foundation\helpers#297 reset array_first YES --
Router#512 end array_last YES --
Router#538 end array_last YES --
Router#643 end array_last YES --
Router#658 end array_last YES --
Fluent#304 reset array_last NO FIXED
Reflector#97 reset array_first YES --

@taylorotwell taylorotwell merged commit 5be6d91 into laravel:12.x Aug 29, 2025
65 checks passed
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