8000 [#8200] document the !!str tag · symfony/symfony-docs@f758e68 · GitHub
[go: up one dir, main page]

Skip to content

Commit f758e68

Browse files
committed
[#8200] d 8000 ocument the !!str tag
1 parent c312ac9 commit f758e68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/yaml/yaml_format.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ The YAML specification defines some tags to set the type of any data explicitly:
308308
.. code-block:: yaml
309309
310310
data:
311+
# this value is parsed as a string (it's not transformed into a DateTime)
312+
start_date: !!str 2002-12-14
313+
311314
# this value is parsed as a float number (it will be 3.0 instead of 3)
312315
price: !!float 3
313316
@@ -318,4 +321,7 @@ The YAML specification defines some tags to set the type of any data explicitly:
318321
Pz7Y6OjuDg4J+fn5OTk6enp
319322
56enmleECcgggoBADs=
320323
324+
.. versionadded:: 3.4
325+
Support for the ``!!str`` tag was introduced in Symfony 3.4.
326+
321327
.. _YAML: http://yaml.org/

0 commit comments

Comments
 (0)
0