@@ -30,13 +30,13 @@ class Inline
30
30
private static $ objectForMap = false ;
31
31
32
32
/**
33
- * Converts a YAML string to a PHP array .
33
+ * Converts a YAML string to a PHP value .
34
34
*
35
35
* @param string $value A YAML string
36
36
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
37
37
* @param array $references Mapping of variable names to values
38
38
*
39
- * @return array A PHP array representing the YAML string
39
+ * @return mixed A PHP value
40
40
*
41
41
* @throws ParseException
42
42
*/
@@ -121,7 +121,7 @@ public static function parse($value, $flags = 0, $references = array())
121
121
* @param mixed $value The PHP variable to convert
122
122
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
123
123
*
124
- * @return string The YAML string representing the PHP array
124
+ * @return string The YAML string representing the PHP value
125
125
*
126
126
* @throws DumpException When trying to dump PHP resource
127
127
*/
@@ -266,7 +266,7 @@ private static function dumpArray($value, $flags)
266
266
}
267
267
268
268
/**
269
- * Parses a scalar to a YAML string .
269
+ * Parses a YAML scalar .
270
270
*
271
271
* @param string $scalar
272
272
* @param int $flags
@@ -276,7 +276,7 @@ private static function dumpArray($value, $flags)
276
276
* @param bool $evaluate
277
277
* @param array $references
278
278
*
279
- * @return string A YAML string
279
+ * @return string
280
280
*
281
281
* @throws ParseException When malformed inline YAML string is parsed
282
282
*
@@ -329,12 +329,12 @@ public static function parseScalar($scalar, $flags = 0, $delimiters = null, $str
329
329
}
330
330
331
331
/**
332
- * Parses a quoted scalar to YAML .
332
+ * Parses a YAML quoted scalar.
333
333
*
334
334
* @param string $scalar
335
335
* @param int &$i
336
336
*
337
- * @return string A YAML string
337
+ * @return string
338
338
*
339
339
* @throws ParseException When malformed inline YAML string is parsed
340
340
*/
@@ -359,14 +359,14 @@ private static function parseQuotedScalar($scalar, &$i)
359
359
}
360
360
361
361
/**
362
- * Parses a sequence to a YAML string .
362
+ * Parses a YAML sequence .
363
363
*
364
364
* @param string $sequence
365
365
* @param int $flags
366
366
* @param int &$i
367
367
* @param array $references
368
368
*
369
- * @return string A YAML string
369
+ * @return array
370
370
*
371
371
* @throws ParseException When malformed inline YAML string is parsed
372
372
*/
@@ -419,14 +419,14 @@ private static function parseSequence($sequence, $flags, &$i = 0, $references =
419
419
}
420
420
421
421
/**
422
- * Parses a mapping to a YAML string .
422
+ * Parses a YAML mapping .
423
423
*
424
424
* @param string $mapping
425
425
* @param int $flags
426
426
* @param int &$i
427
427
* @param array $references
428
428
*
429
- * @return string A YAML string
429
+ * @return array|\stdClass
430
430
*
431
431
* @throws ParseException When malformed inline YAML string is parsed
432
432
*/
0 commit comments