tattersoftware / codeigniter4-schemas

Database schema management, for CodeIgniter 4
MIT License
22 stars 10 forks source link

PHP 8.1 Fatal error #33

Closed internalsystemerror closed 2 years ago

internalsystemerror commented 2 years ago

Using this on PHP 8.1 I get the following error:

During inheritance of IteratorAggregate: Uncaught ErrorException: Return type of Tatter\Schemas\Reader\Handlers\CacheHandler::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /path-to-project/vendor/tatter/schemas/src/Reader/Handlers/CacheHandler.php:155

MGatner commented 2 years ago

Okay I will take a look, or you could send a PR over.

internalsystemerror commented 2 years ago

I was going to yesterday but I got stuck trying to fix the PHPCS and PHPStan issues in order to do that so I think I'll let you.