8000 [Serializer] CSV Encoder returns inconsistent result · Issue #21616 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Serializer] CSV Encoder returns inconsistent result #21616
Closed
@gmponos

Description

@gmponos
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.x

I am trying to understand what's the use of returning inconsistent data depending if the csv has multiple rows or not at this line.

Furthermore:

  • This is really not documented
  • When I used the CsvEncoder I was passing the decoded result into a Collection object which was expecting an associative array. When the user uploaded a single line everything broke.
  • I will just have to put a really bad code part that will need to check if it's a numeric key or not. Can't really think of any other way.
  • Checked the other encoders and I don't think they do that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0