You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
One of the recent changes introduced that fix-class-names changes use statments to be relative even if the were validly absolute before, see http://files.schlitt.info/tmp/diff_issues.patch.
Ok I have found out why this is happening. The reason is php-refactorings-browser tries to guess the namespace from the directory structure in the folders given to is. While not perfect normally this works pretty well so long as the namespaces are well structured.
The problem here was that it was analysing the test/ folder which has well structured namespaces in test/phpunit/Qafoo/... however it also has non PSR-0 compliant php files in test/phpunit/_fixtures.
The best solution here would probably be to convert the _fixtures folder to be PSR-0 compliant.
to skip these files and fix any issues in the _fixtures (and behat contexts) manually.
So in reality I don't think this is a bug however I do think that some work may be required to extract namespaces from files more reliably at some time in the future, especially with PSR-4 on it's way.
One of the recent changes introduced that
fix-class-names
changes use statments to be relative even if the were validly absolute before, see http://files.schlitt.info/tmp/diff_issues.patch.To reproduce this diff do the following:
src/main/Qafoo/ChangeTrack/Analyzer/Vcs/GitCheckout.php -> src/main/Qafoo/ChangeTrack/Analyzer/Checkout/GitCheckout.php
refactor fix-class-names src/ test/ > diff_issues.patch
Btw. the intended changes do not occur in the diff at all.
The text was updated successfully, but these errors were encountered: