Skip to content

How to fix "Unable to resolve the template type T" issue in library #3849

@pkruithof

Description

@pkruithof

Support question

In a recent update, Doctrine added psalm/phpstan annotations, which now makes phpstan find the following error:

https://phpstan.org/r/e462e0f9-abc4-44bc-8a9a-80aca2717980

I've tracked down the change that most likely causes this, and it seems the Doctrine people could not fix this error so they put this error in the ignore section: https://github.com/doctrine/dbal/pull/3977/files#diff-0847156bd64b0de0f4d91da2394ec0e8R89-R92

My question is: what is this error exactly, is there a way to fix or work around it and if not: do I really need to ignore an error caused by a third-party library?

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