Closed (fixed)
Project:
Geofield Map
Version:
11.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2026 at 15:50 UTC
Updated:
26 Mar 2026 at 18:45 UTC
Jump to comment: Most recent
PHP 8.5 deprecates non-canonical cast aliases. (integer) must be replaced with (int).
In GeofieldGoogleMapFormatter, two occurrences of (integer) !empty(...) trigger a deprecation warning at parse time:
Deprecated function: Non-canonical cast (integer) is deprecated, use the (int) cast instead
The (integer) cast is applied to the result of !empty(), which already returns a boolean. The cast is unnecessary and can simply be removed.
settingsForm()if condition in viewElements()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
Comment #3
mably commentedComment #6
itamair commentedthanks @mably, just merged into 11.1.x branch ...
Comment #8
mably commentedYou're welcome :)