Skip to content

PHP 8.4 deprecation warnings for nullable parameters #55

@NiLon

Description

@NiLon

There seems to be flood of deprecation warnings for nullable parameters all around the codebase. This bubbles down to other libs as well.

Deprecated: ByJG\DbMigration\Migration::reset(): Implicitly marking parameter $upVersion as nullable is deprecated, the explicit nullable type must be used instead

This style is deprecated:

function foo(string $bar = null) { }

Instead it has to be:

function foo(?string $bar = null) { }

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