Problem/Motivation
updateStatusOverride function, located in config_split/src/Form/ConfigImportFormTrait.php has some logic issue.
It is being called only once from the launchImport function
Below are the code:
if (!$override !== NULL) {
$batch_builder->addOperation([$this, 'updateStatusOverride'], [$this->getSplit()->getName(), $override]);
}
This code will go the updateStatusOverride callback only in case of $override === NULL.
But the callback itself expects a string. Having NULL as a parameter leads to an error.
So basically, I think this is just a small mistyping issue, and instead of
if (!$override !== NULL) {
should be
if ($override !== NULL) {
Comments
Comment #3
driverok commentedTo reproduce the issue just try importing split configuration via UI
Comment #4
joachim commentedMaking the title clearer.
Confirming this fixes the error for me.
Comment #5
bircher