Upgrade to 4.0.1

This commit is contained in:
Bastian Allgeier
2023-11-30 14:04:59 +01:00
parent 48fecb671b
commit 6cdb5c1c91
16 changed files with 215 additions and 217 deletions

View File

@@ -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 {

View File

@@ -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"