Releases: mbolli/php-geobuf
Releases · mbolli/php-geobuf
v0.3.0 (2026-03-25)
Fixed
Decoder: removed duplicatemergeFromStringcall that doubled all repeated fields (keys, features, coords) and lacked error handling.Decoder: correctedarray_slicelength argument indecodeMultiLine— was passing an end index instead of a count, breaking all multi-ring geometries beyond the first ring.Decoder:decodeMultiPolygonwas slicing$coordsinstead of$lengthsto get per-ring point counts, corrupting any MultiPolygon with more than one polygon.Encoder:encodeToFiledid not forward$precisionand$dimtoencode(), always encoding with the defaults.Encoder:$keysdeduplication never matched (compared strings againsttruevalues with strict mode); keys were never deduplicated and$keyswas never reset between calls.Tests:is_dir()was called with a bare filename instead of the full path.
Changed
- CI: updated
actions/checkoutto v6,actions/cacheto v5, added PHP 8.5 to test matrix.
v0.2.0 (2024-11-18)
Maintenance release, no difference in functionality.
Changes:
- Discontinued PHP 8.0 and 8.1 support
- Changed CI to run test suite on PHP 8.2, 8.3 and 8.4
- Dependency updates
- Pest v1 to v3
- PhpStan v1 to v2
- Protobuf v3 to v4
- Code style fixes
v0.1.4 (2022-12-19)
Maintenance release, functionality is the same as in the other versions.
Changes:
- Discontinued PHP 7.4 support (official security support ended November 28th)
- Fixed some errors based on phpstan static analyzer and added it to the GitHub CI
- Code style fixes as reported by PHP-CS-Fixer
DecoderandEncoderclasses are nowfinal- Changed the test assertion from
toEqualCanonicalizing()totoEqual()-> test suite is now returning 0 errors