From 6276bfedbec148aa55f1ac44137b736f488f187f Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 1 Feb 2019 19:11:59 +0300 Subject: [PATCH] Flextype Core: YamlParser - code fixes according Scrutinizer Tests. - The parameter $flags is not used and could be removed. --- flextype/parsers/YamlParser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flextype/parsers/YamlParser.php b/flextype/parsers/YamlParser.php index 8f6dce8c..a327df43 100644 --- a/flextype/parsers/YamlParser.php +++ b/flextype/parsers/YamlParser.php @@ -87,13 +87,11 @@ class YamlParser { * $array = YamlParser::decode($yaml_file_content); * * @param string $input A string containing YAML - * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior - * * @return mixed The YAML converted to a PHP value * * @throws ParseException If the YAML is not valid */ - public static function decode(string $input, int $flags = 0) + public static function decode(string $input) { // Try native PECL YAML PHP extension first if available. if (YamlParser::$native && function_exists('yaml_parse')) {