diff --git a/Neos.Flow/Classes/Reflection/ReflectionService.php b/Neos.Flow/Classes/Reflection/ReflectionService.php index 4f5707daf2..0060d0ad4a 100644 --- a/Neos.Flow/Classes/Reflection/ReflectionService.php +++ b/Neos.Flow/Classes/Reflection/ReflectionService.php @@ -265,8 +265,9 @@ public function getAllClassNames(): array if (!$this->initialized) { $this->initialize(); } - - return array_keys($this->classReflectionData); + $classNames = array_keys($this->classReflectionData); + sort($classNames); + return $classNames; } /** @@ -1093,8 +1094,6 @@ protected function reflectEmergedClasses(): void } $classNamesToReflect = array_merge([], ...$availableClassnames); $reflectedClassNames = array_keys($this->classReflectionData); - sort($classNamesToReflect); - sort($reflectedClassNames); $newClassNames = array_diff($classNamesToReflect, $reflectedClassNames); if ($newClassNames === []) { return; @@ -1213,10 +1212,6 @@ protected function reflectClass(string $className): void foreach ($class->getMethods() as $method) { $this->reflectClassMethod($className, $method); } - // Sort reflection data so that the cache data is deterministic. This is - // important for comparisons when checking if classes have changed in a - // Development context. - ksort($this->classReflectionData); $this->updatedReflectionData[$className] = true; }