PHP 8.1 Update Issue

Created on 16 March 2023, almost 2 years ago
Updated 28 June 2023, over 1 year ago

After updating to PHP 8.1, I get this error while using the module:

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\smart_ip\SmartIp::query() (line 30 of modules/contrib/smart_ip/src/SmartIp.php).

I've provided a patch that fixes this issue.

🐛 Bug report
Status

Closed: duplicate

Version

4.2

Component

Code

Created by

🇨🇦Canada ericawright

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

Comments & Activities

Production build 0.71.5 2024