Skip to content

Commit 4b9ccfd

Browse files
committed
Improve text
1 parent b18767f commit 4b9ccfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/yaml.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ you can dump them as ``~`` with the ``DUMP_NULL_AS_TILDE`` flag::
421421
Dumping Numeric Keys as Strings
422422
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
423423

424-
Sometime YAML keys must be always string. This component don't convert keys to string by default but you can
425-
make it convert numeric keys as string by using the ``DUMP_NUMERIC_KEY_AS_STRING`` flag::
424+
By default, digit-only array keys are dumped as integers. You can use the
425+
``DUMP_NUMERIC_KEY_AS_STRING`` flag if you want to dump string-only keys::
426426

427427
$dumped = Yaml::dump([200 => 'foo']);
428428
// 200: foo

0 commit comments

Comments
 (0)