@@ -28,15 +28,15 @@ class Inline
28
28
private static $ objectForMap = false ;
29
29
30
30
/**
31
- * Converts a YAML string to a PHP array .
31
+ * Converts a YAML string to a PHP value .
32
32
*
33
33
* @param string $value A YAML string
34
34
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
35
35
* @param bool $objectSupport true if object support is enabled, false otherwise
36
36
* @param bool $objectForMap true if maps should return a stdClass instead of array()
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
*/
@@ -90,7 +90,7 @@ public static function parse($value, $exceptionOnInvalidType = false, $objectSup
90
90
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
91
91
* @param bool $objectSupport true if object support is enabled, false otherwise
92
92
*
93
- * @return string The YAML string representing the PHP array
93
+ * @return string The YAML string representing the PHP value
94
94
*
95
95
* @throws DumpException When trying to dump PHP resource
96
96
*/
@@ -210,7 +210,7 @@ private static function dumpArray($value, $exceptionOnInvalidType, $objectSuppor
210
210
}
211
211
212
212
/**
213
- * Parses a scalar to a YAML string .
213
+ * Parses a YAML scalar .
214
214
*
215
215
* @param string $scalar
216
216
* @param string $delimiters
@@ -219,7 +219,7 @@ private static function dumpArray($value, $exceptionOnInvalidType, $objectSuppor
219
219
* @param bool $evaluate
220
220
* @param array $references
221
221
*
222
- * @return string A YAML string
222
+ * @return string
223
223
*
224
224
* @throws ParseException When malformed inline YAML string is parsed
225
225
*
@@ -271,12 +271,12 @@ public static function parseScalar($scalar, $delimiters = null, $stringDelimiter
271
271
}
272
272
273
273
/**
274
- * Parses a quoted scalar to YAML .
274
+ * Parses a YAML quoted scalar.
275
275
*
276
276
* @param string $scalar
277
277
* @param int &$i
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
*/
@@ -301,13 +301,13 @@ private static function parseQuotedScalar($scalar, &$i)
301
301
}
302
302
303
303
/**
304
- * Parses a sequence to a YAML string .
304
+ * Parses a YAML sequence .
305
305
*
306
306
* @param string $sequence
307
307
* @param int &$i
308
308
* @param array $references
309
309
*
310
- * @return string A YAML string
310
+ * @return array
311
311
*
312
312
* @throws ParseException When malformed inline YAML string is parsed
313
313
*/
@@ -360,13 +360,13 @@ private static function parseSequence($sequence, &$i = 0, $references = array())
360
360
}
361
361
362
362
/**
363
- * Parses a mapping to a YAML string .
363
+ * Parses a YAML mapping .
364
364
*
365
365
* @param string $mapping
366
366
* @param int &$i
367
367
* @param array $references
368
368
*
369
- * @return string A YAML string
369
+ * @return array|\stdClass
370
370
*
371
371
* @throws ParseException When malformed inline YAML string is parsed
372
372
*/
0 commit comments