Skip to content

Commit dd76ab6

Browse files
authored
Merge pull request #865 from BenMorel/uksort_deprecation
Fix uksort() callback returning bool deprecation
2 parents afbca6c + f049c42 commit dd76ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/Processor/InheritanceProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private static function inheritsTypeConfig($child, array $parents, array $config
8585

8686
// Restore initial order
8787
\uksort($parentTypes, function ($a, $b) use ($parents) {
88-
return \array_search($a, $parents, true) > \array_search($b, $parents, true);
88+
return \array_search($a, $parents, true) > \array_search($b, $parents, true) ? 1 : 0;
8989
});
9090

9191
$mergedParentsConfig = self::mergeConfigs(...\array_column($parentTypes, 'config'));

0 commit comments

Comments
 (0)