Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22e422b

Browse files
committed
minor #17907 Adapt CsvEncoder no_headers context (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- Adapt CsvEncoder `no_headers` context Try fix #15243 Default behavior: https://github.com/symfony/symfony/blob/c7a7cb8841bb54a68c967b3ea0e57024802b96ed/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php#L45-L60 With `no_headers` https://github.com/symfony/symfony/blob/c7a7cb8841bb54a68c967b3ea0e57024802b96ed/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php#L647-L653 Commits ------- 2bfe5da Adapt CsvEncode no_headers context
2 parents 5035ad2 + 2bfe5da commit 22e422b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/serializer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,8 @@ Option Description D
11041104
with a ``\t`` character
11051105
``as_collection`` Always returns results as a collection, even if only ``true``
11061106
one line is decoded.
1107-
``no_headers`` Disables header in the encoded CSV ``false``
1107+
``no_headers`` Setting to ``false`` will use first row as headers. ``false``
1108+
``true`` generate numeric headers.
11081109
``output_utf8_bom`` Outputs special `UTF-8 BOM`_ along with encoded data ``false``
11091110
======================= ===================================================== ==========================
11101111

0 commit comments

Comments
 (0)