webpush
webpush copied to clipboard
Warnings when running on Laravel 9.x and PHP 8
This is a warning that I get when I run php artisan while having this package:
PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or import the class with "use" to suppress this warning in /var/www/html/vendor/thecodingmachine/safe/generated/sockets.php on line 797
PHP Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class with "use" to suppress this warning in /var/www/html/vendor/thecodingmachine/safe/generated/swoole.php on line 17
When I remove laravel-notification-channels/webpush the warnings stop.
It's caused by this package: web-token/jwt-util-ecc on version 2.x
+1
Same issue here, updated to PHP 8.1 solved it for me.
Issue comes back on php 8.1 by an update of laravel/framework to 9.49.0