Upgrade to rc5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user