Skip to content
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
@tobyS

Description

@tobyS

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions