Upgrade to 4.0.1
This commit is contained in:
8
kirby/vendor/symfony/yaml/Inline.php
vendored
8
kirby/vendor/symfony/yaml/Inline.php
vendored
@@ -55,12 +55,8 @@ class Inline
|
||||
*
|
||||
* @throws ParseException
|
||||
*/
|
||||
public static function parse(string $value = null, int $flags = 0, array &$references = []): mixed
|
||||
public static function parse(string $value, int $flags = 0, array &$references = []): mixed
|
||||
{
|
||||
if (null === $value) {
|
||||
return '';
|
||||
}
|
||||
|
||||
self::initialize($flags);
|
||||
|
||||
$value = trim($value);
|
||||
@@ -161,7 +157,7 @@ class Inline
|
||||
} elseif (floor($value) == $value && $repr == $value) {
|
||||
// Preserve float data type since storing a whole number will result in integer value.
|
||||
if (!str_contains($repr, 'E')) {
|
||||
$repr = $repr.'.0';
|
||||
$repr .= '.0';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
2
kirby/vendor/symfony/yaml/composer.json
vendored
2
kirby/vendor/symfony/yaml/composer.json
vendored
@@ -21,7 +21,7 @@
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/console": "^5.4|^6.0"
|
||||
"symfony/console": "^5.4|^6.0|^7.0"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/console": "<5.4"
|
||||
|
Reference in New Issue
Block a user