Skip to content
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

Deprecated error in importing fix #327

Merged
merged 3 commits into from Jul 31, 2023
Merged

Deprecated error in importing fix #327

merged 3 commits into from Jul 31, 2023

Conversation

jayedul
Copy link
Contributor

@jayedul jayedul commented Jun 26, 2023

Description of the Change

@ini_set( 'auto_detect_line_endings', true ); removed from csv import script since latest PHP versions manages line endings automatically.

Closes #283

How to test the Change

  • Create a CSV file for SRM importer
  • Import from different OS
  • It should work as usual

Changelog Entry

Fixed - Deprecated notice

Credits

Props @dhewer @jayedul

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@jayedul jayedul self-assigned this Jun 26, 2023
@jayedul jayedul marked this pull request as ready for review June 26, 2023 16:30
@jayedul jayedul requested a review from a team as a code owner June 26, 2023 16:30
@jayedul jayedul requested review from Sidsector9 and removed request for a team June 26, 2023 16:30
@jeffpaul jeffpaul added this to the 2.1.0 milestone Jun 28, 2023
Sidsector9

This comment was marked as outdated.

Copy link
Member

@Sidsector9 Sidsector9 left a comment

Choose a reason for hiding this comment

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

@jayedul this plugin has a minimum PHP support for 7.4. The auto_detect_line_endings directive was deprecated in 8.1 and will be removed in 9.0.

Do you think instead of removing this entirely, we should maybe conditionally set it for PHP versions < 8.1?

@ravinderk
Copy link
Contributor

@jayedul, did you get a chance to check @Sidsector9 review?

@jayedul jayedul requested a review from Sidsector9 July 20, 2023 15:30
Copy link
Member

@Sidsector9 Sidsector9 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! LGTM 🎉

@Sidsector9 Sidsector9 merged commit b04f0df into develop Jul 31, 2023
11 checks passed
@Sidsector9 Sidsector9 deleted the fix/283 branch July 31, 2023 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auto_detect_line_endings is deprecated as of PHP 8.1
4 participants