Skip to content

Offset non-empty-string on array{...} on left side of ?? does not exist. #10577

@michalbundyra

Description

@michalbundyra

Bug report

Looks like combination with trim breaks nullCoalesce.offset check.

Code snippet that reproduces the problem

https://phpstan.org/r/b811c983-bd14-4c9f-b6bb-9e836e3ff0a1

Expected output

No error in the code

Did PHPStan help you today? Did it make you happy in any way?

No response

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