Skip to content
New issue

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

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

Already on GitHub? # to your account

FilepathNamespaceExtractor must omit current working dir #987

Closed
wants to merge 1 commit into from

Conversation

rmikalkenas
Copy link
Contributor

Currently TypeNameMatchesFileNameSniff fails if file path is /www/src/src/Foo/FooTest.php and defined root namespace is 'src' => 'Slevomat'. By removing current working dir path from files path, we can assure that filepath namspace extractor will do its job correctly.

@c33s
Copy link

c33s commented Jul 16, 2021

@rmikalkenas is there a reason why this wasn't merged? i currently have exactly this problem. see #1249

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

Successfully merging this pull request may close these issues.

2 participants