Skip to content

The option treatPhpDocTypesAsCertain still trust too much the phpdoc #4650

@VincentLanglet

Description

@VincentLanglet

Bug report

Hi @ondrejmirtes

The option treatPhpDocTypesAsCertain still trust too much the phpdoc. I found two case

  • non-empty-array.
  • template and generics.

Both examples are in my snippet.

Code snippet that reproduces the problem

https://phpstan.org/r/b0612151-054f-475d-8161-542dd2628f1c

Expected output

No errors, we can be sure about non-empty-array and we can't be sure about generics/template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions