Skip to content

Commit befb26a

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [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
2 parents 58666e4 + db8dae7 commit befb26a

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
@@ -28,15 +28,15 @@ class Inline
2828
private static $objectForMap = false;
2929

3030
/**
31-
* Converts a YAML string to a PHP array.
31+
* Converts a YAML string to a PHP value.
3232
*
3333
* @param string $value A YAML string
3434
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
3535
* @param bool $objectSupport true if object support is enabled, false otherwise
3636
* @param bool $objectForMap true if maps should return a stdClass instead of array()
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
*/
@@ -90,7 +90,7 @@ public static function parse($value, $exceptionOnInvalidType = false, $objectSup
9090
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
9191
* @param bool $objectSupport true if object support is enabled, false otherwise
9292
*
93-
* @return string The YAML string representing the PHP array
93+
* @return string The YAML string representing the PHP value
9494
*
9595
* @throws DumpException When trying to dump PHP resource
9696
*/
@@ -210,7 +210,7 @@ private static function dumpArray($value, $exceptionOnInvalidType, $objectSuppor
210210
}
211211

212212
/**
213-
* Parses a scalar to a YAML string.
213+
* Parses a YAML scalar.
214214
*
215215
* @param string $scalar
216216
* @param string $delimiters
@@ -219,7 +219,7 @@ private static function dumpArray($value, $exceptionOnInvalidType, $objectSuppor
219219
* @param bool $evaluate
220220
* @param array $references
221221
*
222-
* @return string A YAML string
222+
* @return string
223223
*
224224
* @throws ParseException When malformed inline YAML string is parsed
225225
*
@@ -271,12 +271,12 @@ public static function parseScalar($scalar, $delimiters = null, $stringDelimiter
271271
}
272272

273273
/**
274-
* Parses a quoted scalar to YAML.
274+
* Parses a YAML quoted scalar.
275275
*
276276
* @param string $scalar
277277
* @param int &$i
278278
*
279-
* @return string A YAML string
279+
* @return string
280280
*
281281
* @throws ParseException When malformed inline YAML string is parsed
282282
*/
@@ -301,13 +301,13 @@ private static function parseQuotedScalar($scalar, &$i)
301301
}
302302

303303
/**
304-
* Parses a sequence to a YAML string.
304+
* Parses a YAML sequence.
305305
*
306306
* @param string $sequence
307307
* @param int &$i
308308
* @param array $references
309309
*
310-
* @return string A YAML string
310+
* @return array
311311
*
312312
* @throws ParseException When malformed inline YAML string is parsed
313313
*/
@@ -360,13 +360,13 @@ private static function parseSequence($sequence, &$i = 0, $references = array())
360360
}
361361

362362
/**
363-
* Parses a mapping to a YAML string.
363+
* Parses a YAML mapping.
364364
*
365365
* @param string $mapping
366366
* @param int &$i
367367
* @param array $references
368368
*
369-
* @return string A YAML string
369+
* @return array|\stdClass
370370
*
371371
* @throws ParseException When malformed inline YAML string is parsed
372372
*/

0 commit comments

Comments
 (0)