Undefined array key map_false fixed
1 unresolved thread
1 unresolved thread
Compare changes
@@ -44,11 +44,11 @@ class ConvertBoolean extends ProcessPluginBase {
@@ -44,11 +44,11 @@ class ConvertBoolean extends ProcessPluginBase {
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
$map_false_from_config = (!empty($this->configuration['map_false'] && is_array($this->configuration['map_false']))) ? $this->configuration['map_false'] : [];
$map_true_from_config = (!empty($this->configuration['map_true'] && is_array($this->configuration['map_true']))) ? $this->configuration['map_true'] : [];
I don't think we need the
!empty()
on this since we are passing an empty array if it is. It would read better if it was just(isset($this->configuration['map_false']) && is_array($this->configuration['map_false']))
Same for $map_true_from_config..