PHP 8: Deprecated function: Return type of SearchApiSolrDocument::getIterator()...

Created on 2 December 2022, over 1 year ago
Updated 12 April 2023, about 1 year ago

On PHP 8 when indexing an item, I get

Deprecated function: Return type of SearchApiSolrDocument::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 76 of /var/www/drupal/sites/all/modules/contrib/search_api_solr/includes/document.inc).
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Ronino

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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.69.0 2024