From e7109ab88a7d6b711fe24610165bd50613ff34d7 Mon Sep 17 00:00:00 2001 From: Prima Date: Sat, 12 Feb 2022 09:41:46 +0100 Subject: [PATCH] Update JSMin.php Avoid DEPRECIATED message with PHP8.1 --- src/JSMin/JSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JSMin/JSMin.php b/src/JSMin/JSMin.php index bbf7c50..5b77944 100644 --- a/src/JSMin/JSMin.php +++ b/src/JSMin/JSMin.php @@ -335,7 +335,7 @@ protected function get() $c = null; } } - if (ord($c) >= self::ORD_SPACE || $c === "\n" || $c === null) { + if ($c === null || ord($c) >= self::ORD_SPACE || $c === "\n") { return $c; } if ($c === "\r") {