forked from zendframework/zf1
-
Notifications
You must be signed in to change notification settings - Fork 195
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
PHP 8 shows a warning on routes with dynamic variables #212
Comments
|
Or
instead of
|
This was referenced Mar 29, 2022
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On routes that have dynamic, non-regex variables (e.g.
/foo/:id
) there's a warning on PHP 8.1 about passing null to substr:The line is this:
zf1-future/library/Zend/Controller/Router/Route.php
Line 288 in 9a10c63
It should be:
$part
can be null at that point as mentioned on line 96 ("stores [its] regex requirement or null") and there's already another null check later on line 298, so it's not a case of an invalid route or other configuration issue.The text was updated successfully, but these errors were encountered: