Skip to content

Template type not supporting string|null although it works fine #5305

@janedbal

Description

@janedbal

Bug report

Getting PHPDoc tag @template T for method HelloWorld::normalize() with bound type null is not supported. in following snippet, but the functionality seems working, is that just invalid error?

Code snippet that reproduces the problem

https://phpstan.org/r/04528bd4-6738-4b6e-b9f3-4756ce08c3f7

Expected output

No error on line 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions