Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix implicitly nullable parameters for PHP 8.4 #35

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

tylersatre
Copy link
Contributor

When testing PHP 8.4 in my local environment and running composer update to get the newer packages I noticed a couple of deprecation warnings.

  • Deprecated: array_first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/laravel/helpers/src/helpers.php on line 84
  • Deprecated: array_last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/laravel/helpers/src/helpers.php on line 156

This updates the signature of those two methods.

RFC for deprecation.

@tylersatre
Copy link
Contributor Author

I also updated the tests action to include 8.4 in the matrix.

@taylorotwell taylorotwell merged commit f289070 into laravel:master Nov 26, 2024
10 checks passed
@tylersatre tylersatre deleted the patch-1 branch November 26, 2024 14:57
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