mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-24 22:09:07 +00:00
Fix ArrayUtil::isArrayAssoc() erroring with a CaseInsensitiveArray.
Error message:
array_keys() expects parameter 1 to be array, object given
This commit is contained in:
@@ -14,7 +14,7 @@ class ArrayUtil
|
||||
*/
|
||||
public static function isArrayAssoc($array)
|
||||
{
|
||||
return (bool)count(array_filter(array_keys($array), 'is_string'));
|
||||
return is_array($array) && (bool)count(array_filter(array_keys($array), 'is_string'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user