Skip to content

[Serializer] Add a Custom End Of Line in CSV File #40489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

xfifix
Copy link
Contributor

@xfifix xfifix commented Mar 16, 2021

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
License MIT
Doc PR -

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@xfifix xfifix force-pushed the feature/serializer-csv-eof branch from d33fa94 to e94aeff Compare March 16, 2021 16:37
@carsonbot
Copy link

Hey!

I did a quick review of this PR, I think most things looks good.

I think @malarzm has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas
Copy link
Member

Hello, that's a new feature, it should thus target 5.x.
Also, as @carsonbot wrote already, this misses a test case.
And last but not least, this misses explanations as to why we should add this feature.

@xfifix
Copy link
Contributor Author

xfifix commented Mar 17, 2021

yes sorry, I need to generate a csv file with \r\n as a line break. I will generate the tests soon

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to php/php-src#6403

@nicolas-grekas nicolas-grekas changed the base branch from 4.4 to 5.x March 19, 2021 10:53
@nicolas-grekas nicolas-grekas force-pushed the feature/serializer-csv-eof branch from 525abcd to c34cfda Compare March 19, 2021 10:54
@nicolas-grekas nicolas-grekas force-pushed the feature/serializer-csv-eof branch from c34cfda to 20f0367 Compare March 19, 2021 10:55
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I rebased for 5.x)

@xfifix
Copy link
Contributor Author

xfifix commented Mar 19, 2021

@nicolas-grekas it's possible add this feature also in 4.X ?

@nicolas-grekas
Copy link
Member

New features go on 5.x
Only bug fixes go on 4.4

@nicolas-grekas
Copy link
Member

Thank you @xfifix.

@fabpot fabpot mentioned this pull request Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants