@@ -62,8 +63,8 @@ public function __construct(public readonly array $config, string $recipe_direct
// Ensure we don't get a false mismatch due to different key order.
// @todo When https://www.drupal.org/project/drupal/issues/3230826 is
// fixed in core, use that API instead to sort the config data.
self::recursiveSortByKey($active_data);
self::recursiveSortByKey($recipe_data);
SortArray::sortByKeyRecursive($active_data);
SortArray::sortByKeyRecursive($recipe_data);
if($active_data!==$recipe_data){
thrownewRecipePreExistingConfigException($config_name,sprintf("The configuration '%s' exists already and does not match the recipe's configuration",$config_name));
}
@@ -71,27 +72,6 @@ public function __construct(public readonly array $config, string $recipe_direct
}
}
/**
* Sorts an array recursively, by key, alphabetically.
*
* @param mixed[] $data
* The array to sort, passed by reference.
*
* @todo Remove when https://www.drupal.org/project/drupal/issues/3230826 is