laravel-notification-channels / webpush

Webpush notifications channel for Laravel.
http://laravel-notification-channels.com
MIT License
681 stars 119 forks source link

Warnings when running on Laravel 9.x and PHP 8 #180

Open Al-bambino opened 2 years ago

Al-bambino commented 2 years ago

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

dennissvu commented 2 years ago

+1

MarioPerini commented 1 year ago

Same issue here, updated to PHP 8.1 solved it for me.

MarioPerini commented 1 year ago

Issue comes back on php 8.1 by an update of laravel/framework to 9.49.0