mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-13 20:06:43 +00:00
Merge pull request #671 from ginnerpeace/patch-1
Fix use '$this' in non-object context
This commit is contained in:
@@ -33,7 +33,7 @@ class ArrayUtil
|
||||
*/
|
||||
public static function is_array_assoc($array)
|
||||
{
|
||||
return $this->isArrayAssoc($array);
|
||||
return static::isArrayAssoc($array);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,7 +64,7 @@ class ArrayUtil
|
||||
*/
|
||||
public static function is_array_multidim($array)
|
||||
{
|
||||
return $this->isArrayMultidim($array);
|
||||
return static::isArrayMultidim($array);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,7 +123,7 @@ class ArrayUtil
|
||||
*/
|
||||
public static function array_flatten_multidim($array, $prefix = false)
|
||||
{
|
||||
return $this->arrayFlattenMultidim($array, $prefix);
|
||||
return static::arrayFlattenMultidim($array, $prefix);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -150,6 +150,6 @@ class ArrayUtil
|
||||
*/
|
||||
public static function array_random($array)
|
||||
{
|
||||
return $this->arrayRandom($array);
|
||||
return static::arrayRandom($array);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user