PHP 8.4 Deprecation: explicit nullable type must be used

Created on 19 August 2025, about 2 months ago

Problem/Motivation

Deprecated function: Drupal\webform_ip_geo\Plugin\WebformElement\WebformIpGeo::replaceTokens(): Implicitly marking parameter $webform_submission as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /app/vendor/composer/ClassLoader.php)

PHP 8.4 best practices dictate we declare this as possibly being nullable. To extend the PHP compatibility for the must versions of PHP, we can use the PHP 7.1 added support for nullable types, which introduced the ?TYPE syntax to declare the types as nullable

see https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullabl...

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States generalredneck Texas, USA πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Production build 0.71.5 2024