-
-
Notifications
You must be signed in to change notification settings - Fork 513
Description
Description
I’m experiencing issues because the dependencies in this package are outdated and cannot be upgraded properly.
Specifically, I stopped using the agent package because it required mobiledetect/mobiledetectlib at version 2.6, which cannot be updated beyond 2.8 — even though the library is already at version 4.x.
This caused deprecation warnings on my server since older versions are not compatible with PHP 8.4:
Mobile_Detect::construct(): Implicitly marking parameter $headers as nullable is deprecated,
the explicit nullable type must be used instead in
/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php on line 888
Current workaround
I had to stop using your package and instead require mobiledetect/mobiledetectlib directly at version 4.8, which resolves the issue.
Expected behavior
The package should update its dependency constraints to allow installation of the latest stable mobiledetect/mobiledetectlib (>=4.x), ensuring compatibility with PHP 8.4 and avoiding deprecation logs.