1
0
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:
Awilum
2019-11-11 20:38:43 +03:00
parent 50ff094b47
commit 623c71a426

View File

@@ -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');