Skip to content

Commit 29e5a0b

Browse files
Merge pull request #4023 from getkirby/fix/arguments
PHP 8.1: Fix more arguments of built-in functions
2 parents d10ace7 + 11ef3d0 commit 29e5a0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: config/tags.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
if ($isLocalVideo === true) {
299299
// handles local video file
300300
if ($tag->file = $tag->file($tag->value)) {
301-
$source = Html::tag('source', null, [
301+
$source = Html::tag('source', '', [
302302
'src' => $tag->file->url(),
303303
'type' => $tag->file->mime()
304304
]);

Diff for: src/Text/KirbyTag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function parse(string $string, array $data = [], array $options =
159159

160160
// extract all attributes
161161
$regex = sprintf('/(%s):/i', implode('|', $attr));
162-
$search = preg_split($regex, $tag, false, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
162+
$search = preg_split($regex, $tag, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
163163

164164
// $search is now an array with alternating keys and values
165165
// convert it to arrays of keys and values

Diff for: src/Toolkit/Str.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public static function float($value): string
417417

418418
$value = str_replace(',', '.', $value);
419419
$decimal = strlen(substr(strrchr($value, '.'), 1));
420-
return number_format((float)$value, $decimal, '.', false);
420+
return number_format((float)$value, $decimal, '.', '');
421421
}
422422

423423
/**

0 commit comments

Comments
 (0)