Skip to content

Some problems are not reported when showTypeOnHover is enabled #109

@lkrms

Description

@lkrms

I have a problem reported by PHPStan only when I run it on the command line--or when I disable showTypeOnHover.

It seems the extension's TreeFetcher somehow changes PHPStan's type inferences in some circumstances--perhaps only when bleeding edge is enabled? (I'm seeing the behaviour after moving to PHPStan 1.12.10 and enabling bleeding edge; it's not clear which was the trigger.)

The difference I'm observing is that PHPStan thinks a string is non-empty normally, but with TreeFetcher in the mix, the non-empty flag is removed. Ironically, the latter behaviour is correct, but that's beside the point ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions