diff --git a/core/includes/common.inc b/core/includes/common.inc index b392cd9..6dd1818 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -4331,8 +4331,8 @@ function element_info_property($type, $property_name, $default = NULL) { * * @deprecated as of Drupal 8.0. Use SortArray::sortByWeightElement() instead. */ -function drupal_sort_weight(array $a, array $b) { - return SortArray::sortByWeightElement($a, $b); +function drupal_sort_weight($a, $b) { + return SortArray::sortByWeightElement((array) $a, (array) $b); } /**