serbanghita / Mobile-Detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Home Page:http://mobiledetect.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php 8.4 - implicit nulls are deprecated

Xon opened this issue · comments

commented

Describe the bug
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types

Using php 8.4-dev, implicit nulls in function arguments will generate deprecation notices.

An example of an implicit null:

function foo(T $var = null) {}

The fix:

function foo(?T $var = null) {}

@Xon the 3.74.x branch is for PHP 7.x only

Use 4.8.x for PHP 8, I think this patch can be submitted there