With PHP 8, I get these and similar errors:

Return type of MigrateSource::current() should either be compatible with
Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should
be used to temporarily suppress the notice
Return type of MigrateSQLMap::current() should either be compatible with
Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should
be used to temporarily suppress the notice
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ronino created an issue. See original summary.

Ronino’s picture

This patch fixes the issue for functions I got errors for.

Ronino’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3301821: Fix PHP 8.1 compatibility issues

Obviously a dupliate of #3301821: Fix PHP 8.1 compatibility issues. How could I not see this ;-).