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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | php8_signature-3358951-2.patch | 976 bytes | liquidcms |
Comments
Comment #2
liquidcms commentedand patch
Comment #4
juanolalla commentedThank you @liquidcms, committed.
Comment #5
juanolalla commented