Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Treat PHPDoc types as certain doesn't work in class method but works outside #10012

@cedomm

Description

@cedomm

Bug report

Treat PHPDoc types as certain is not working inside a class method but does work outside with the same code.

Playground working outside class method

Code snippet that reproduces the problem

https://phpstan.org/r/927f95de-3357-4ff7-899a-494b0f073159

Expected output

No errors!

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions