diff --git a/src/Config/Processor/InheritanceProcessor.php b/src/Config/Processor/InheritanceProcessor.php index 3329e24e9..9e8625af5 100644 --- a/src/Config/Processor/InheritanceProcessor.php +++ b/src/Config/Processor/InheritanceProcessor.php @@ -85,7 +85,7 @@ private static function inheritsTypeConfig($child, array $parents, array $config // Restore initial order \uksort($parentTypes, function ($a, $b) use ($parents) { - return \array_search($a, $parents, true) > \array_search($b, $parents, true); + return \array_search($a, $parents, true) > \array_search($b, $parents, true) ? 1 : 0; }); $mergedParentsConfig = self::mergeConfigs(...\array_column($parentTypes, 'config'));