mirror of
https://github.com/flextype/flextype.git
synced 2025-08-26 14:34:31 +02:00
refactor(core): Parser API's refactoring #288
This commit is contained in:
@@ -105,7 +105,7 @@ class Yaml
|
||||
public static function decode(string $input) : array
|
||||
{
|
||||
// Try native PECL YAML PHP extension first if available.
|
||||
if (function_exists('yaml_parse') && self::$native) {
|
||||
if (\function_exists('yaml_parse') && self::$native) {
|
||||
// Safely decode YAML.
|
||||
$saved = @ini_get('yaml.decode_php');
|
||||
@ini_set('yaml.decode_php', '0');
|
||||
|
Reference in New Issue
Block a user