From e875dacbd4851881c7be1d89638db09eefc690ee Mon Sep 17 00:00:00 2001 From: gtbu Date: Sun, 22 May 2022 16:10:04 +0200 Subject: [PATCH] Update php8.1 --- include/thirdparty/ScssPhp/ScssPhp/Compiler.php | 2 +- include/tool.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/thirdparty/ScssPhp/ScssPhp/Compiler.php b/include/thirdparty/ScssPhp/ScssPhp/Compiler.php index 9eb8dec..c7c449a 100644 --- a/include/thirdparty/ScssPhp/ScssPhp/Compiler.php +++ b/include/thirdparty/ScssPhp/ScssPhp/Compiler.php @@ -328,7 +328,7 @@ class Compiler // all Sass features that aren’t also valid CSS will produce errors. // Otherwise, the CSS will be rendered as-is. It can even be extended! $cssOnly = false; - + $path .= ""; if (substr($path, '-4') === '.css') { $cssOnly = true; } diff --git a/include/tool.php b/include/tool.php index 76e7284..cc8f637 100644 --- a/include/tool.php +++ b/include/tool.php @@ -99,7 +99,7 @@ namespace gp{ $args = func_get_args(); $args[] = $dataDir . $dirPrefix; foreach($args as $arg){ - if( !ctype_digit($arg) ){ + if( !ctype_digit((string)$arg)){ $arg = crc32( $arg ); $arg = sprintf("%u\n", $arg); } @@ -700,7 +700,7 @@ namespace gp{ public static function SpecialHref($href){ global $gp_index; - $href2 = ''; + $href2 = ''; $href .= ''; $pos = mb_strpos($href, '/'); if( $pos !== false ){ $href2 = mb_substr($href, $pos);