From e2e8c7bfb43454871d29aacfe1847297471ece24 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Sun, 25 Aug 2019 12:36:57 +0300 Subject: [PATCH] Fixing files doubling #42 --- src/Plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index 459741f..6fc09af 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -171,11 +171,11 @@ protected function orderFiles(array $files): array $res = []; foreach ($this->orderedFiles as $file) { if (isset($keys[$file])) { - $res[] = $file; + $res[$file] = $file; } } - return $res; + return array_values($res); } /**