From f049c4245a2c5f347fd808cf62a919f785d68e55 Mon Sep 17 00:00:00 2001
From: Benjamin Morel <benjamin.morel@gmail.com>
Date: Mon, 21 Jun 2021 10:37:39 +0200
Subject: [PATCH] Fix uksort() callback returning bool deprecation

---
 src/Config/Processor/InheritanceProcessor.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'));