preg_match() deprecation issues in mobile_detect.inc on PHP >= 8.1

Created on 2 February 2024, 5 months ago
Updated 9 February 2024, 5 months ago

On PHP 8.1 and above, the following warnings are triggered when using this module:

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in DeviceDetectorMobileDetect->match() (line 840 of /sites/all/modules/contrib/device_detector/class/mobile_detect.inc).

Warning: preg_match(): Unknown modifier '|' in DeviceDetectorMobileDetect->getOsName() (line 1063 of /sites/all/modules/contrib/device_detector/class/mobile_detect.inc)

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States JustRick

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024