Skip to content

Incorrect resolution of assertInstanceOf with __NAMESPACE__ + string #27

@Majkl578

Description

@Majkl578

Doctrine is using the following legacy format on some places:

self::assertInstanceOf(__NAMESPACE__.'\\MyFetchClass', $results[0]);

in a test located inside the Doctrine\Tests\DBAL\Functional\DataAccessTest test case.

The above incorrectly resolves as Doctrine\MyFetchClass instead of Doctrine\Tests\DBAL\Functional\MyFetchClass. Replacing with MyFetchClass::class is a workaround.

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