This repository was archived by the owner on Jul 12, 2020. It is now read-only.
This repository was archived by the owner on Jul 12, 2020. It is now read-only.
optimize-use: Duplicate imports #33
Open
Description
I usually reference \RuntimeException
absolutely without importing it. The optimize-use
attempts to fix this, but creates duplicate imports, e.g.:
--- 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;
+use RuntimeException;
require __DIR__ . '/../../../vendor/autoload.php';
+use RuntimeException;
+use RuntimeException;
//
+use RuntimeException;
// Require 3rd-party libraries here:
+use RuntimeException;
//
+use RuntimeException;
…
Metadata
Metadata
Assignees
Labels
No labels