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

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Labels

Milestone

@LastDragon-ru

Description

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