Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect resolution of assertInstanceOf with __NAMESPACE__ + string #27

Open
Majkl578 opened this issue Aug 18, 2018 · 0 comments
Open

Comments

@Majkl578
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant