8000 [12.x] Improve types of `Arr` helper by shaedrich · Pull Request #58518 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@shaedrich
Copy link
Contributor

Benefits

✅ Improved static analysis
✅ Improved type inference
✅ Increased type coverage

Based on

Highlights

  • true and false literal types instead of bool where possible
  • Narrowed whether strings or arrays are null upon return where possible
  • Use of generics to infer the return type where possible
  • Narrowing of callables where possible
  • Definition of array shapes where possible

@shaedrich shaedrich marked this pull request as draft January 27, 2026 22:22
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.

1 participant

0