-
Notifications
You must be signed in to change notification settings - Fork 20
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
Missing extension when class name FQN is resolved under user namespace #275
Milestone
Comments
Run example with v5.4 when analysing this file https://github.com/bovigo/vfsStream/blob/v1.6.0/src/test/php/org/bovigo/vfs/vfsStreamZipTestCase.php
|
Change with commits 83492c2 and c5254b0 allows to solve situation in such context https://github.com/sebastianbergmann/phpunit/blob/7.5.20/src/Util/Configuration.php#L549 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With issue #210 running on new version 5.4, I've noticed (and it's normal because it's PHP native behaviour), that class called with new constructor that are not properly defined with namespace import are detected under user namespace.
Here is a concrete example pick from vfsStream v1.6.0 => https://github.com/bovigo/vfsStream/blob/v1.6.0/src/test/php/org/bovigo/vfs/vfsStreamZipTestCase.php#L39
ZipArchive
is resolved by nikic/php-parser NameResolver asorg\bovigo\vfs\ZipArchive
(and it's not a bug)So in CompatInfo 5.4.0 I'll consider this situtation (conditional code only) as resolving extension with :
ext.min
= 0.1.0php.min
= 5.3.0The text was updated successfully, but these errors were encountered: