X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fyaml%2FYaml.php;h=17db7659c1f669268d5c623bdc7b3627df9b8aca;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=d429a3391cb43c34e43430cd82ad04a5e7113723;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/yaml/Yaml.php b/vendor/symfony/yaml/Yaml.php index d429a3391..17db7659c 100644 --- a/vendor/symfony/yaml/Yaml.php +++ b/vendor/symfony/yaml/Yaml.php @@ -42,11 +42,10 @@ class Yaml /** * Parses a YAML file into a PHP value. * - * Usage: - * - * $array = Yaml::parseFile('config.yml'); - * print_r($array); - * + * Usage: + * + * $array = Yaml::parseFile('config.yml'); + * print_r($array); * * @param string $filename The path to the YAML file to be parsed * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior @@ -80,7 +79,7 @@ class Yaml */ public static function parse($input, $flags = 0) { - if (is_bool($flags)) { + if (\is_bool($flags)) { @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED); if ($flags) { @@ -90,7 +89,7 @@ class Yaml } } - if (func_num_args() >= 3) { + if (\func_num_args() >= 3) { @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the PARSE_OBJECT flag instead.', E_USER_DEPRECATED); if (func_get_arg(2)) { @@ -98,7 +97,7 @@ class Yaml } } - if (func_num_args() >= 4) { + if (\func_num_args() >= 4) { @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED); if (func_get_arg(3)) { @@ -126,7 +125,7 @@ class Yaml */ public static function dump($input, $inline = 2, $indent = 4, $flags = 0) { - if (is_bool($flags)) { + if (\is_bool($flags)) { @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED); if ($flags) { @@ -136,7 +135,7 @@ class Yaml } } - if (func_num_args() >= 5) { + if (\func_num_args() >= 5) { @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the DUMP_OBJECT flag instead.', E_USER_DEPRECATED); if (func_get_arg(4)) {