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

[PHP 8.4] Fixes for implicit nullability deprecation #865

Merged
merged 2 commits into from
Mar 25, 2024

Commits on Mar 16, 2024

  1. [PHP 8.4] Fixes for implicit nullability deprecation

    Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
    
    See:
     - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types)
     - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)
    
    The "fix" for this deprecation is a bit unorthodox, in that the type delcaration is dropped. This makes it effectively a `mixed` type.
    Inside the function, it mimics the type check and throws an exception (PHP 7.0+) or triggers an error.
    Ayesh committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    fa649fe View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Configuration menu
    Copy the full SHA
    e0dba7a View commit details
    Browse the repository at this point in the history