Skip to content

Using nullsafe method call on non-nullable type HelloWorld. Use -> instead. #8523

@LastDragon-ru

Description

@LastDragon-ru

Bug report

Since 1.9.3 phpstan wrongly assumes that static value is not nullable, but it is null

image

Code snippet that reproduces the problem

https://phpstan.org/r/050f005b-078c-4f2d-85db-7b8a59c1de25

Expected output

No error.

Notes

Maybe related to #8337

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions