Update php8.1

This commit is contained in:
gtbu 2022-05-22 16:10:04 +02:00
parent 0ab6cd285f
commit e875dacbd4
2 changed files with 3 additions and 3 deletions

View file

@ -328,7 +328,7 @@ class Compiler
// all Sass features that arent 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;
}

View file

@ -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);