Skip to content

Wrong detection of key-of annotation #5

Description

@mitelg

hey,

I just tried your library on our project https://github.com/shopware/shopware/actions/runs/31367358674/job/93388583940?pr=19140

I does not correctly detects the array definition of Doctrine DBAL. Problem is the key-of annotation here: https://github.com/doctrine/dbal/blob/4.4.4/src/DriverManager.php#L51
It should allow the defined array keys from here https://github.com/doctrine/dbal/blob/4.4.4/src/DriverManager.php#L77

Instead following error is thrown:

Return value['driver'] must be an object of type key-of, string 'pdo_mysql' returned"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions