Skip to content

Replace legacy array helper functions with Arr class methods#659

Merged
daftspunk merged 2 commits intooctobercms:4.xfrom
Samuell1:replace-array-helpers-with-arr-class
Jan 26, 2026
Merged

Replace legacy array helper functions with Arr class methods#659
daftspunk merged 2 commits intooctobercms:4.xfrom
Samuell1:replace-array-helpers-with-arr-class

Conversation

@Samuell1
Copy link
Member

Replaces deprecated global array helper functions with their Illuminate\Support\Arr equivalents across 21 files:

  • array_get() → Arr::get()
  • array_first() → Arr::first()
  • array_except() → Arr::except()

They still exists in codebase just moving that we can deprecate them later.

Samuell1 and others added 2 commits January 17, 2026 16:29
Replaces deprecated global array helper functions with their
Illuminate\Support\Arr equivalents across 21 files:
- array_get() → Arr::get()
- array_first() → Arr::first()
- array_except() → Arr::except()
@daftspunk
Copy link
Member

Laravel seems to be a bit confused about using these helpers or using Facades... is this the "one true way"?

@Samuell1
Copy link
Member Author

@daftspunk i think this is issue that php started doing in core this methods and they dont match laravel param order or they dont work correctly, thats why they started doing this

@daftspunk daftspunk merged commit b6661a9 into octobercms:4.x Jan 26, 2026
4 checks passed
@daftspunk
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants