From bcd995689bd55a0a1f836e4ccb2f57f9bcdc5fd7 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Tue, 29 Jun 2021 16:58:46 +0200 Subject: [PATCH] no need to sort versions in the finder (they are already sorted in the migration sorter) --- lib/Doctrine/Migrations/Finder/Finder.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Doctrine/Migrations/Finder/Finder.php b/lib/Doctrine/Migrations/Finder/Finder.php index b9eba5b426..8bc96f9ab1 100644 --- a/lib/Doctrine/Migrations/Finder/Finder.php +++ b/lib/Doctrine/Migrations/Finder/Finder.php @@ -12,13 +12,10 @@ use function get_declared_classes; use function in_array; use function is_dir; -use function ksort; use function realpath; use function strlen; use function strncmp; -use const SORT_STRING; - /** * The Finder class is responsible for for finding migrations on disk at a given path. */ @@ -68,8 +65,6 @@ protected function loadMigrations(array $files, ?string $namespace): array $versions[] = $class->getName(); } - ksort($versions, SORT_STRING); - return $versions; }