Skip to content
New issue

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

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

Already on GitHub? # to your account

Update AltoRouter.php for php 8.4 #285

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

xpetter
Copy link
Contributor

@xpetter xpetter commented Dec 16, 2024

Fix for php8.4
AltoRouter::map(): Implicitly marking parameter $name as nullable is deprecated. AltoRouter::match(): Implicitly marking parameter $requestUrl as nullable is deprecated. AltoRouter::match(): Implicitly marking parameter $requestMethod as nullable is deprecated.

Fix for php8.4
AltoRouter::map(): Implicitly marking parameter $name as nullable is deprecated.
AltoRouter::match(): Implicitly marking parameter $requestUrl as nullable is deprecated.
AltoRouter::match(): Implicitly marking parameter $requestMethod as nullable is deprecated.
@dannyvankooten
Copy link
Owner

Thanks @xpetter! Can you change the PR to use ?string instead of string|null? That way we can stay compatible with PHP version 7.3 (which the project currently is).

@xpetter xpetter marked this pull request as draft December 16, 2024 13:11
fix for php 8.4 and keep php 7.3 support
Copy link
Contributor Author

@xpetter xpetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix for php 8.4 and still support php 7.3

@xpetter xpetter marked this pull request as ready for review December 16, 2024 13:15
@dannyvankooten dannyvankooten merged commit bc6b911 into dannyvankooten:master Dec 16, 2024
3 checks passed
@dannyvankooten
Copy link
Owner

Nice one, thanks a lot @xpetter!

@xpetter xpetter deleted the patch-1 branch December 16, 2024 13:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants