Here is an example error that is being thrown when using PHP 8.1:
Return type of Riclep\Storyblok\Block::getIterator() should either be compatible with IteratorAggregate::getIterator():
Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Overview
This PR should make the necessary minor changes to allow PHP 8.1. Without adding these return types, the package will throw Deprecation notices.
For full changelog, check out the notes here.
Context
Here is an example error that is being thrown when using PHP 8.1: