-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #34019 [Serializer] CsvEncoder::NO_HEADERS_KEY ignored when used …
…in constructor (Dario Savella) This PR was squashed before being merged into the 4.3 branch. Discussion ---------- [Serializer] CsvEncoder::NO_HEADERS_KEY ignored when used in constructor | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT My first pull request... The following code: ``` $data = <<<EOD a,b c,d EOD; $encoder = new CsvEncoder([CsvEncoder::NO_HEADERS_KEY=>true]); var_dump($encoder->decode($data,'csv')); ``` produces: ``` array(2) { 'a' => string(1) "c" 'b' => string(1) "d" } ``` instead of the expected: ``` array(2) { [0] => array(2) { [0] => string(1) "a" [1] => string(1) "b" } [1] => array(2) { [0] => string(1) "c" [1] => string(1) "d" } } ``` Commits ------- a0430f6917 [Serializer] CsvEncoder::NO_HEADERS_KEY ignored when used in constructor
- Loading branch information
Showing
2 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters