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

Command icon 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

rpayanm created an issue. See original summary.

rpayanm’s picture

Status: Active » Needs review

Please review.

slucero’s picture

Status: Needs review » Reviewed & tested by the community
Parent issue: » #3296167: Beta 5 Release Plan

I was able to reproduce these notices in the browser tests on PHP 8.1 and confirmed the update fixes them.

Thanks for the contribution!

  • slucero committed 29d256f on 9.1.x authored by rpayanm
    Issue #3300762 by rpayanm: Deprecated function: Return type of rewind...
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged for inclusion in the Beta5 release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.