+
Skip to content

Union type int|false is converted to type int|bool when using template. #7984

@vdauchy

Description

@vdauchy

Bug report

Union type int|false is converted to type int|bool when using template.

Code snippet that reproduces the problem

https://phpstan.org/r/fd175ccc-e72b-4b2c-9adf-008f02e66533

Expected output

No error shall be detected.

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

Hi, thanks for your work, I'm having a relaxing time solving issues in my libs <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载