Skip to content

treatPhpDocTypesAsCertain is ignored in 0.12.51 #3991

@paulbalandan

Description

@paulbalandan

Bug report

Code snippet that reproduces the problem

In this code: https://phpstan.org/r/3b819596-cdf7-4563-a6d6-b7989ce6f338 the offending line is working well until 0.12.50, with the treatPhpDocTypesAsCertain config set to false. On version bump, it seems this is now ignored and flagging it as error.

Expected output

Still no errors since PHPDoc is not trusted to be certain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions