Silencing PHP 8.1 deprecation notices that prevents Joomla! from running with error reporting on.
Example of error message
PHP Deprecated: Return type of Joomla\Database\DatabaseIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\virtualhosts\clean40\libraries\vendor\joomla\database\src\DatabaseIterator.php on line 214
Snip from PHP.net Backward Incompatible Changes:
Testing Instructions
Code review or check that errors disappear from logfile.
Pull Request for Issue #
Summary of Changes
Silencing PHP 8.1 deprecation notices that prevents Joomla! from running with error reporting on. Example of error message PHP Deprecated: Return type of Joomla\Database\DatabaseIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\virtualhosts\clean40\libraries\vendor\joomla\database\src\DatabaseIterator.php on line 214
Snip from PHP.net Backward Incompatible Changes:
Testing Instructions
Code review or check that errors disappear from logfile.
Documentation Changes Required
Probably not.