Skip to content

Support for PHP 8.4: Refactor implicitly nullable parameters #149

@pmccarren

Description

@pmccarren

Hi! Thanks for your work on this project.

I noticed that some functions/methods use parameters with default null values without explicitly marking them as nullable. This pattern is deprecated as of PHP 8.4.

Example:

// Triggers deprecation in PHP 8.4
function example(string $param = null) { ... }

// Should be:
function example(?string $param = null) { ... }

It would be great to update these to avoid deprecation warnings in PHP 8.4 and beyond.

I’d be happy to help prepare a PR if that would be useful.

Thanks again!

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