From 83852ba41dda42129084748ce214ca0480f07ace Mon Sep 17 00:00:00 2001 From: frank goossens Date: Tue, 9 Apr 2024 08:12:06 +0200 Subject: [PATCH] seperate $c===null from the ord($c) test to make sure ord() does not get null, should (might) fix https://github.com/futtta/autoptimize/issues/416 ? --- classes/external/php/jsmin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/external/php/jsmin.php b/classes/external/php/jsmin.php index 4e289501..dd15f08f 100644 --- a/classes/external/php/jsmin.php +++ b/classes/external/php/jsmin.php @@ -335,7 +335,9 @@ protected function get() return $c; } } - if ($c === null || ord($c) >= self::ORD_SPACE || $c === "\n") { + if ($c === null) { + return $c; + } else if (ord($c) >= self::ORD_SPACE || $c === "\n") { return $c; } if ($c === "\r") {