Skip to content

Commit 92e2f6d

Browse files
committed
Merge branch '3.1'
* 3.1: [TwigBridge] fix tests Tag the FormFieldRegistry as being internal [Form] Fix Date\TimeType marked as invalid on request with single_text and zero seconds [FrameworkBundle] Register the ArrayDenormalizer [Serializer] Fix DataUriNormalizer's regex [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 e0c8bd4 + eaa5562 commit 92e2f6d

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
@@ -33,13 +33,13 @@ class Inline
3333
private static $constantSupport = false;
3434

3535
/**
36-
* Converts a YAML string to a PHP array.
36+
* Converts a YAML string to a PHP value.
3737
*
3838
* @param string $value A YAML string
3939
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
4040
* @param array $references Mapping of variable names to values
4141
*
42-
* @return array A PHP array representing the YAML string
42+
* @return mixed A PHP value
4343
*
4444
* @throws ParseException
4545
*/
@@ -125,7 +125,7 @@ public static function parse($value, $flags = 0, $references = array())
125125
* @param mixed $value The PHP variable to convert
126126
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
127127
*
128-
* @return string The YAML string representing the PHP array
128+
* @return string The YAML string representing the PHP value
129129
*
130130
* @throws DumpException When trying to dump PHP resource
131131
*/
@@ -271,7 +271,7 @@ private static function dumpArray($value, $flags)
271271
}
272272

273273
/**
274-
* Parses a scalar to a YAML string.
274+
* Parses a YAML scalar.
275275
*
276276
* @param string $scalar
277277
* @param int $flags
@@ -281,7 +281,7 @@ private static function dumpArray($value, $flags)
281281
* @param bool $evaluate
282282
* @param array $references
283283
*
284-
* @return string A YAML string
284+
* @return string
285285
*
286286
* @throws ParseException When malformed inline YAML string is parsed
287287
*
@@ -334,12 +334,12 @@ public static function parseScalar($scalar, $flags = 0, $delimiters = null, $str
334334
}
335335

336336
/**
337-
* Parses a quoted scalar to YAML.
337+
* Parses a YAML quoted scalar.
338338
*
339339
* @param string $scalar
340340
* @param int &$i
341341
*
342-
* @return string A YAML string
342+
* @return string
343343
*
344344
* @throws ParseException When malformed inline YAML string is parsed
345345
*/
@@ -364,14 +364,14 @@ private static function parseQuotedScalar($scalar, &$i)
364364
}
365365

366366
/**
367-
* Parses a sequence to a YAML string.
367+
* Parses a YAML sequence.
368368
*
369369
* @param string $sequence
370370
* @param int $flags
371371
* @param int &$i
372372
* @param array $references
373373
*
374-
* @return string A YAML string
374+
* @return array
375375
*
376376
* @throws ParseException When malformed inline YAML string is parsed
377377
*/
@@ -424,14 +424,14 @@ private static function parseSequence($sequence, $flags, &$i = 0, $references =
424424
}
425425

426426
/**
427-
* Parses a mapping to a YAML string.
427+
* Parses a YAML mapping.
428428
*
429429
* @param string $mapping
430430
* @param int $flags
431431
* @param int &$i
432432
* @param array $references
433433
*
434-
* @return string A YAML string
434+
* @return array|\stdClass
435435
*
436436
* @throws ParseException When malformed inline YAML string is parsed
437437
*/

0 commit comments

Comments
 (0)