From 8be46834c69a77e1a48a1b03344698febf54a5a5 Mon Sep 17 00:00:00 2001 From: ginnerpeace Date: Thu, 10 Jun 2021 11:05:37 +0800 Subject: [PATCH] Fix use '$this' in non-object context The pseudo-variable $this is not available inside methods declared as static. --- src/Curl/ArrayUtil.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Curl/ArrayUtil.php b/src/Curl/ArrayUtil.php index 39698a3..61834de 100644 --- a/src/Curl/ArrayUtil.php +++ b/src/Curl/ArrayUtil.php @@ -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); } }