Upgrade to rc5

This commit is contained in:
Bastian Allgeier
2020-12-10 11:24:42 +01:00
parent 3fec0d7c93
commit c378376bc9
257 changed files with 13009 additions and 1846 deletions

View File

@@ -79,7 +79,7 @@ class Data
* @param string $type
* @return array
*/
public static function decode($string = null, string $type): array
public static function decode($string, string $type): array
{
return static::handler($type)->decode($string);
}
@@ -91,7 +91,7 @@ class Data
* @param string $type
* @return string
*/
public static function encode($data = null, string $type): string
public static function encode($data, string $type): string
{
return static::handler($type)->encode($data);
}

View File

@@ -24,6 +24,9 @@ class Yaml extends Handler
*/
public static function encode($data): string
{
// TODO: The locale magic should no longer be
// necessary when support for PHP 7.x is dropped
// fetch the current locale setting for numbers
$locale = setlocale(LC_NUMERIC, 0);