Skip to content

Deprecation in EntityRepository fails phpstan #644

Closed
@mroeling

Description

@mroeling

Current phpstan doctrine error prevents moving forward to php8.4. No error in php8.3.

Line 45: Deprecated in PHP 8.4: Parameter #2 $orderBy (array) is implicitly nullable via default value null.

public function findOneBy(array $criteria, array $orderBy = null);

Image

Version info:
phpstan: 2.1.1
phpstan-doctrine: 2.0.1
php: 8.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions