webpush icon indicating copy to clipboard operation
webpush copied to clipboard

Warnings when running on Laravel 9.x and PHP 8

Open Al-bambino opened this issue 3 years ago • 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

Al-bambino avatar Aug 25 '22 11:08 Al-bambino

+1

dennissvu avatar Sep 06 '22 12:09 dennissvu

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

MarioPerini avatar Dec 06 '22 11:12 MarioPerini

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

MarioPerini avatar Feb 01 '23 09:02 MarioPerini