laravel-notification-channels/webpush

Warnings when running on Laravel 9.x and PHP 8

Al-bambino opened this issue · 3 comments

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

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