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

Add explicit nullable type for additionalQuery parameter #286

Merged

Conversation

RomkaLTU
Copy link
Contributor

This PR addresses a deprecation warning in PHP 8.4 related to implicit nullable parameters.

Changes

  • Updated the type declaration of $additionalQuery parameter in findBySlug method from callable $additionalQuery = null to ?callable $additionalQuery = null

Add explicit nullable type declaration for $additionalQuery parameter in findBySlug method to address PHP 8.4 deprecation warning
@freekmurze freekmurze merged commit 23dcb4c into spatie:main Dec 23, 2024
14 checks passed
@freekmurze
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants