Property Drupal\migrate\Plugin\migrate\source\SourcePluginBase::$currentRow (Drupal\migrate\Row) does not accept null.

Created on 18 June 2025, 16 days ago

Properties $currentRow and $currentSourceIds in the SourcePluginBase might be null.

When we work with classes that inherit from Drupal\migrate\Plugin\migrate\source\SourcePluginBase and want to set the value of the $currentRow or $currentSourceIds variable to NULL, we get an error from phpstan.
These variables should be able to be NULL in the annotation, as they are used directly in the same class:

Line 315, 316.
$this->currentRow = NULL;
$this->currentSourceIds = NULL;

A will add patch for this.

πŸ› Bug report
Status

Active

Version

10.4 ✨

Component

plugin system

Created by

πŸ‡ΊπŸ‡¦Ukraine mero.S

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024