PHP 8 compatible and signature change.

Created on 8 May 2023, over 1 year ago
Updated 1 March 2024, 10 months ago

Problem/Motivation

After upgrading to PHP 8.1 and D9.5 i get 2 issues with this module:

1. strtr() deprecation warning:
Deprecated function: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\address_static_map\Plugin\Field\FieldFormatter\AddressStaticMapFormatter->renderGoogleMapsImage() (line 202 of E:\www\\modules\contrib\address_static_map\src\Plugin\Field\FieldFormatter\AddressStaticMapFormatter.php)

2. no map being rendered due to null signature added to map url.

the following patch fixes both.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇨🇦Canada liquidcms

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024