From 0dcc6d59ef00a22fdf25740a7aba9c18379ddabe Mon Sep 17 00:00:00 2001 From: Markus Bachmann Date: Wed, 9 May 2018 20:29:51 +0200 Subject: [PATCH] Support null values --- src/Step/MappingStep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Step/MappingStep.php b/src/Step/MappingStep.php index fb87bf5..2e3397f 100644 --- a/src/Step/MappingStep.php +++ b/src/Step/MappingStep.php @@ -63,7 +63,7 @@ public function process($item, callable $next) // Check if $item is an array, because properties can't be unset. // So we don't call unset for objects to prevent side affects. - if (is_array($item) && isset($item[$from])) { + if (is_array($item) && array_key_exists($from, $item)) { unset($item[$from]); } }