@@ -44,8 +44,8 @@ class Yaml
44
44
* $array = Yaml::parseFile('config.yml');
45
45
* print_r($array);
46
46
*
47
- * @param string $filename The path to the YAML file to be parsed
48
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
47
+ * @param string $filename The path to the YAML file to be parsed
48
+ * @param int-mask-of<self::PARSE_*> $flags A bit field of PARSE_* constants to customize the YAML parser behavior
49
49
*
50
50
* @throws ParseException If the file could not be read or the YAML is not valid
51
51
*/
@@ -65,8 +65,8 @@ public static function parseFile(string $filename, int $flags = 0): mixed
65
65
* print_r($array);
66
66
* </code>
67
67
*
68
- * @param string $input A string containing YAML
69
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
68
+ * @param string $input A string containing YAML
69
+ * @param int-mask-of<self::PARSE_*> $flags A bit field of PARSE_* constants to customize the YAML parser behavior
70
70
*
71
71
* @throws ParseException If the YAML is not valid
72
72
*/
@@ -83,10 +83,10 @@ public static function parse(string $input, int $flags = 0): mixed
83
83
* The dump method, when supplied with an array, will do its best
84
84
* to convert the array into friendly YAML.
85
85
*
86
- * @param mixed $input The PHP value
87
- * @param int $inline The level where you switch to inline YAML
88
- * @param int $indent The amount of spaces to use for indentation of nested nodes
89
- * @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
86
+ * @param mixed $input The PHP value
87
+ * @param int $inline The level where you switch to inline YAML
88
+ * @param int $indent The amount of spaces to use for indentation of nested nodes
89
+ * @param int-mask-of<self::DUMP_*> $flags A bit field of DUMP_* constants to customize the dumped YAML string
90
90
*/
91
91
public static function dump (mixed $ input , int $ inline = 2 , int $ indent = 4 , int $ flags = 0 ): string
92
92
{
0 commit comments