From fb69a1c51ac231c4eaeea2808e5f76ec3b96eaef Mon Sep 17 00:00:00 2001 From: Carlos Vinicius Date: Fri, 17 Jul 2020 09:24:43 +0200 Subject: [PATCH] Cannot access self:: when no class scope is active ix the error in PHP 5.3 Fatal error: Cannot access self:: when no class scope is active in ...\LZCompressor\LZUtil.php on line 43 --- src/LZCompressor/LZUtil.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LZCompressor/LZUtil.php b/src/LZCompressor/LZUtil.php index a0599b2..affb7be 100644 --- a/src/LZCompressor/LZUtil.php +++ b/src/LZCompressor/LZUtil.php @@ -40,7 +40,7 @@ public static function getBaseValue($alphabet, $character) public static function fromCharCode() { return array_reduce(func_get_args(), function ($a, $b) { - $a .= self::utf8_chr($b); + $a .= LZUtil::utf8_chr($b); return $a; }); } @@ -107,4 +107,4 @@ public static function utf8_charAt($str, $num) public static function utf8_strlen($str) { return mb_strlen($str, 'UTF-8'); } -} \ No newline at end of file +}