Steps to reproduce
When you see a template and use PHP 8.1, you'll see these three Deprecated messages:
Deprecated function: Return type of Drupal\patternkit\Schema\SchemaIterator::rewind() should either be compatible with ArrayIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 571 of /app/vendor/composer/ClassLoader.php).
Deprecated function: Return type of Drupal\patternkit\Schema\SchemaIterator::next() should either be compatible with ArrayIterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 571 of /app/vendor/composer/ClassLoader.php).
Deprecated function: Return type of Drupal\patternkit\Schema\SchemaIterator::seek($offset) should either be compatible with ArrayIterator::seek(int $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 571 of /app/vendor/composer/ClassLoader.php).
Issue fork patternkit-3300762
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rpayanmPlease review.
Comment #4
sluceroI was able to reproduce these notices in the browser tests on PHP 8.1 and confirmed the update fixes them.
Thanks for the contribution!
Comment #6
sluceroMerged for inclusion in the Beta5 release.