Skip to content

[12.x] Add missing return type to Arr::array()#58280

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
mischasigtermans:arr-array-return-type
Jan 5, 2026
Merged

[12.x] Add missing return type to Arr::array()#58280
taylorotwell merged 1 commit intolaravel:12.xfrom
mischasigtermans:arr-array-return-type

Conversation

@mischasigtermans
Copy link
Contributor

This PR adds the missing native return type to Arr::array() and removes the redundant @return docblock to match the pattern used by its sibling methods:

  • Arr::boolean()
  • Arr::float()
  • Arr::integer()
  • Arr::string()

All of these have native return types with only @throws in their docblocks.


Found by taylor-says 🤠

@taylorotwell taylorotwell merged commit 6dbb8fb into laravel:12.x Jan 5, 2026
72 checks passed
@mischasigtermans mischasigtermans deleted the arr-array-return-type branch January 5, 2026 19:10
DarkGhostHunter pushed a commit to DarkGhostHunter/laravel-framework that referenced this pull request Jan 5, 2026
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.

2 participants