Skip to content

Commit

Permalink
Support null values
Browse files Browse the repository at this point in the history
  • Loading branch information
Baachi committed May 9, 2018
1 parent 03f59ad commit 0dcc6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Step/MappingStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit 0dcc6d5

Please sign in to comment.