Skip to content

Commit eaa5562

Browse files
committed
Merge branch '2.8' into 3.1
* 2.8: [TwigBridge] fix tests Tag the FormFieldRegistry as being internal [Form] Fix Date\TimeType marked as invalid on request with single_text and zero seconds [Validator] Added missing swedish translation [TranslationDebug] workaround for getFallbackLocales. [Translation] fixed nested fallback catalogue using multiple locales. fixed phpdoc [Command] Fixed method comments as phpDoc syntax Added single quotes for upgrade guides.
2 parents cc82ea6 + befb26a commit eaa5562

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Inline.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class Inline
3030
private static $objectForMap = false;
3131

3232
/**
33-
* Converts a YAML string to a PHP array.
33+
* Converts a YAML string to a PHP value.
3434
*
3535
* @param string $value A YAML string
3636
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
3737
* @param array $references Mapping of variable names to values
3838
*
39-
* @return array A PHP array representing the YAML string
39+
* @return mixed A PHP value
4040
*
4141
* @throws ParseException
4242
*/
@@ -121,7 +121,7 @@ public static function parse($value, $flags = 0, $references = array())
121121
* @param mixed $value The PHP variable to convert
122122
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
123123
*
124-
* @return string The YAML string representing the PHP array
124+
* @return string The YAML string representing the PHP value
125125
*
126126
* @throws DumpException When trying to dump PHP resource
127127
*/
@@ -266,7 +266,7 @@ private static function dumpArray($value, $flags)
266266
}
267267

268268
/**
269-
* Parses a scalar to a YAML string.
269+
* Parses a YAML scalar.
270270
*
271271
* @param string $scalar
272272
* @param int $flags
@@ -276,7 +276,7 @@ private static function dumpArray($value, $flags)
276276
* @param bool $evaluate
277277
* @param array $references
278278
*
279-
* @return string A YAML string
279+
* @return string
280280
*
281281
* @throws ParseException When malformed inline YAML string is parsed
282282
*
@@ -329,12 +329,12 @@ public static function parseScalar($scalar, $flags = 0, $delimiters = null, $str
329329
}
330330

331331
/**
332-
* Parses a quoted scalar to YAML.
332+
* Parses a YAML quoted scalar.
333333
*
334334
* @param string $scalar
335335
* @param int &$i
336336
*
337-
* @return string A YAML string
337+
* @return string
338338
*
339339
* @throws ParseException When malformed inline YAML string is parsed
340340
*/
@@ -359,14 +359,14 @@ private static function parseQuotedScalar($scalar, &$i)
359359
}
360360

361361
/**
362-
* Parses a sequence to a YAML string.
362+
* Parses a YAML sequence.
363363
*
364364
* @param string $sequence
365365
* @param int $flags
366366
* @param int &$i
367367
* @param array $references
368368
*
369-
* @return string A YAML string
369+
* @return array
370370
*
371371
* @throws ParseException When malformed inline YAML string is parsed
372372
*/
@@ -419,14 +419,14 @@ private static function parseSequence($sequence, $flags, &$i = 0, $references =
419419
}
420420

421421
/**
422-
* Parses a mapping to a YAML string.
422+
* Parses a YAML mapping.
423423
*
424424
* @param string $mapping
425425
* @param int $flags
426426
* @param int &$i
427427
* @param array $references
428428
*
429-
* @return string A YAML string
429+
* @return array|\stdClass
430430
*
431431
* @throws ParseException When malformed inline YAML string is parsed
432432
*/

0 commit comments

Comments
 (0)