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 /home/privacy/htdocs/removed-for-privacy.com/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 /home/privacy/htdocs/removed-for-privacy.com/vendor/thecodingmachine/safe/generated/swoole.php on line 17
Any idea on how to solve?
I've tried with PHP 8.2 which I've been running for a while, and swapped to 8.1 - but this above warning comes when clearing cache.
I've read some comment about including --with-all-dependencies
But after removing PWA and re-activating with
composer require askvortsov/flarum-pwa --with-all-dependencies
It does no difference.
Edit: Perhaps I spoke too soon.
Did, after reverting to PHP 8.1:
composer update -W --prefer-dist --no-dev -a
And
php flarum migrate && php flarum cache:clear
Recieved no PHP warning 🙂