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

CommentFileSizeAuthor
#2 php8_signature-3358951-2.patch976 bytesliquidcms

Comments

liquidcms created an issue. See original summary.

liquidcms’s picture

Status: Active » Needs review
StatusFileSize
new976 bytes

and patch

juanolalla’s picture

Status: Needs review » Fixed

Thank you @liquidcms, committed.

juanolalla’s picture

Version: 1.0.x-dev » 1.1.2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.