Skip to content

PHP 8.4 gives deprecation warning regarding nullable parameters #143

@johanhermansson

Description

@johanhermansson

My logs shows deprecation warning in a lot of places in this library. Of course not a critical problem, but it's nice with clean logs and future-proofing libraries.

Example:

Deprecated: Arrayy\Arrayy::get(): Implicitly marking parameter $array as nullable is deprecated, the explicit nullable type must be used instead in /voku/arrayy/src/Arrayy.php on line 2972 

Not my comfort zone, but could probably be automatically fixed with PHP-CS-FIxer or PHP CodeSniffer as mentioned in the bottom:

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions