X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FUtility%2FNestedArray.php;fp=web%2Fcore%2Flib%2FDrupal%2FComponent%2FUtility%2FNestedArray.php;h=36df7c7b1f04566e3e7dd07ad640a5870ac44c37;hp=c11d6a65821fc66e5ceeaf5e973845eaa7604819;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/lib/Drupal/Component/Utility/NestedArray.php b/web/core/lib/Drupal/Component/Utility/NestedArray.php index c11d6a658..36df7c7b1 100644 --- a/web/core/lib/Drupal/Component/Utility/NestedArray.php +++ b/web/core/lib/Drupal/Component/Utility/NestedArray.php @@ -328,7 +328,7 @@ class NestedArray { // Renumber integer keys as array_merge_recursive() does unless // $preserve_integer_keys is set to TRUE. Note that PHP automatically // converts array keys that are integer strings (e.g., '1') to integers. - if (is_integer($key) && !$preserve_integer_keys) { + if (is_int($key) && !$preserve_integer_keys) { $result[] = $value; } // Recurse when both values are arrays.