Skip to content

Stop CSV-to-GeoJSON pipelines from crashing on PHP 8.2+ - #21

Merged
pjeweb merged 1 commit into
mainfrom
fix/csv-php82-compat
Sep 4, 2026
Merged

Stop CSV-to-GeoJSON pipelines from crashing on PHP 8.2+#21
pjeweb merged 1 commit into
mainfrom
fix/csv-php82-compat

Conversation

@pjeweb

@pjeweb pjeweb commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • pulp-geojson merge no longer TypeErrors when input FeatureCollections have no CRS.
  • pulp-geojson fromCsv keeps UTF-8 as UTF-8, maps every row, and no longer passes null into stripslashes().
  • pulp-geocsv drops blank trailing lines and treats missing X/Y as no geometry instead of warning.

Test plan

  • vendor/bin/phpunit --testsuite pulp-geojson,pulp-geocsv
  • CI PHP 8.2–8.5 matrix
  • After merge, tag pulp-geojson@v1.0.4 and pulp-geocsv@v1.0.3 if we want Packagist releases.

Merge no longer requires a CRS, and CSV handlers drop blank trailing lines instead of passing null into stripslashes or coordinate columns.
@pjeweb
pjeweb merged commit 0ad4d9e into main Sep 4, 2026
7 checks passed
@pjeweb
pjeweb deleted the fix/csv-php82-compat branch September 4, 2026 10:19
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.

1 participant