From 54bdce4a6a319bf23b5f0d4c3c6e4c6284080acb Mon Sep 17 00:00:00 2001 From: Marvin Rabe Date: Wed, 4 Oct 2023 10:49:50 +0200 Subject: [PATCH] Update Minifier.php fix: wrong return types --- src/JShrink/Minifier.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JShrink/Minifier.php b/src/JShrink/Minifier.php index 3f07ad8..9ddf41c 100644 --- a/src/JShrink/Minifier.php +++ b/src/JShrink/Minifier.php @@ -127,7 +127,7 @@ class Minifier * @param string $js The raw javascript to be minified * @param array $options Various runtime options in an associative array * @throws \Exception - * @return bool|string + * @return string */ public static function minify($js, $options = []) { @@ -674,7 +674,7 @@ protected function endsInKeyword() { * Replace patterns in the given string and store the replacement * * @param string $js The string to lock - * @return bool + * @return string */ protected function lock($js) { @@ -699,7 +699,7 @@ protected function lock($js) * Replace "locks" with the original characters * * @param string $js The string to unlock - * @return bool + * @return string */ protected function unlock($js) {