Skip to content

Commit 7417022

Browse files
Fixed loadOperationsFrom
1 parent 3b894e5 commit 7417022

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OneTimeOperationManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ public static function getOperationPaths()
151151
*/
152152
public static function loadOperationsFrom($paths)
153153
{
154-
self::$paths = array_merge(self::$paths, (array)$paths);
154+
self::$paths = array_unique(
155+
array_merge(self::$paths, (array)$paths)
156+
);
155157
}
156158

157159
public static function getOperationNameFromFilename(string $filename): string

0 commit comments

Comments
 (0)