Problem/Motivation

Starting with v6.0, symfony/serialize components were added typed return (see this pull request : https://github.com/symfony/serializer/commit/7d2f07bffadfae9bef59471515f...).

Module's component GeoJsonEncoder which extends JsonEncoder does not type its method's return, which leads to fatal error when implementing or using in any way geolocation plugins.

Attached patch fixes said fatal error by applying parent class typed returns to GeoJsonEncoder.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jmaxant created an issue. See original summary.

jmaxant’s picture

StatusFileSize
new809 bytes
UVic’s picture

Patch on comment #2 works fine for me. Thanks!

Martygraphie made their first commit to this issue’s fork.

  • Martygraphie committed 70987504 on 1.0.x
    Issue #3388465 by jmaxant: symfony/encoder v6.x compatibility
    
martygraphie’s picture

Title: symfony/encoder v6.x compatibility » [1.0.3] symfony/encoder v6.x compatibility
Status: Active » Fixed

Thanks, the fix is available in 1.0.3.

martygraphie’s picture

Status: Fixed » Closed (fixed)