After I upgraded to PHP 8.1 and Flarum 1.3 I see some deprecation warnings in the php_errorlog. I thought I disabled them in the php.ini but unfortunately they still keep showing up. It's not very critical, I don't see a lot of them this time, so it's growing very slowly but still. Is there a way to disable them permanently?
Here are the different types so far:
PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer.phar/vendor/symfony/console/Helper/HelperSet.php on line 112
PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/customer/www/mydomain.com/public_html/forum/vendor/illuminate/database/Query/Builder.php on line 849
PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/customer/www/mydomain.com/public_html/forum/vendor/flarum/core/src/Foundation/Console/InfoCommand.php on line 162
And many similar to this one, won't paste them all, ask me if you are interested:
PHP Deprecated: Return type of Jenssegers\Model\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/customer/www/mydomain.com/public_html/forum/vendor/jenssegers/model/src/Model.php on line 866