Skip to content

[Bug] PHP 8.4: Implicitly nullable parameter #818

@solonovamax

Description

@solonovamax

In PHP 8.4, implicitly nullable parameters now emit an error-level deprecation message (it logs the message at an error level but does not cause the script to fail)

Only this file appeared in my logs:

public function getLocalFile(File $file, int $maxSize = null): ?string {

but, there likely exist several others, which you can find using

grep -R ' = null' . | grep -iv 'vendor'

in the repo folder to find most of them. however, this excludes instances in the vendored deps, so those deps should be updated to a newer version which has this fixed.

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