PHP 8.1: Compatibility

Created on 2 December 2021, over 3 years ago
Updated 26 February 2025, about 1 month ago

Problem/Motivation

Seeing the following when running PHP 8.1:

Deprecated function: Return type of Drupal\simple_oauth\Authentication\TokenAuthUser::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 18 of /var/www/html/drupal/web/modules/contrib/simple_oauth/src/Authentication/TokenAuthUser.php)

Proposed resolution

Add \Traversable return type to method.

πŸ› Bug report
Status

Closed: duplicate

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrweiner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024