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 was archived by the owner on Jul 12, 2020. It is now read-only.
Using the optimize-use command on test/features/bootstrap/FeatureContext.php (known project) yields an import for the class that is declared in the file:
$ refactor optimize-use test/features/bootstrap/FeatureContext.php
--- a/test/features/bootstrap/FeatureContext.php+++ b/test/features/bootstrap/FeatureContext.php@@ -10,15 +10,26 @@
use Qafoo\ChangeTrack\Analyzer;
use Qafoo\ChangeTrack\Calculator;
use Qafoo\ChangeTrack\Change;
+use FeatureContext;
…
-class FeatureContext extends BehatContext+class FeatureContext extends BehatContext
…
The text was updated successfully, but these errors were encountered:
pscheit
added a commit
to pscheit/php-refactoring-browser
that referenced
this issue
Oct 6, 2013
I have fixed this in my fork.
Unfortunately there was a bug/feature in the TokenReflectionAnalysis. When a file without a namespace token is given, the namespaceDeclarationLine is set to the line of the first class token. I found this very unintuitive and changed our adapter for this case to return the namespaceDeclarationLine as 0. Would you agree with this?
Using the
optimize-use
command ontest/features/bootstrap/FeatureContext.php
(known project) yields an import for the class that is declared in the file:The text was updated successfully, but these errors were encountered: