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

Deprecated Implicitly nullable from PHP 8.4 #117

Open
sharpchi opened this issue Feb 4, 2025 · 0 comments
Open

Deprecated Implicitly nullable from PHP 8.4 #117

sharpchi opened this issue Feb 4, 2025 · 0 comments

Comments

@sharpchi
Copy link

sharpchi commented Feb 4, 2025

Just running code checking prepping for M4.5 and PHP 8.3 and noticed a warning about implict nulls in params.

#56: ····public·static·function·set_page_fake_url(moodle_url·$url·=·null)·{
Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $url. (PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated)
#74: ····public·static·function·set_page_real_url(moodle_url·$url·=·null)·{
Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $url. (PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated)

These can easily be remedied without breaking backward support: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

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

No branches or pull requests

1 participant