Skip to content

Commit 1d2f648

Browse files
authored
Uses string literals instead of constants
more clear about used options in the example
1 parent 8cc6fea commit 1d2f648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ Option Description De
900900
``csv_headers`` Sets the order of the header and data columns
901901
E.g.: $this->serializer->serialize(
902902
['c' => 3,'a' => 1,'b' => 2],
903-
CsvEncoder::FORMAT,
904-
[CsvEncoder::HEADERS_KEY => ['a', 'b', 'c']]);
903+
'csv',
904+
['csv_headers' => ['a', 'b', 'c']]);
905905
returns
906906
a,b,c
907907
1,2,3 ``[]``, inferred from input data's keys

0 commit comments

Comments
 (0)