Skip to content

Commit 3648311

Browse files
author
Scott Pringle
committed
Minor update to the Mutator so that it doesn't try to update false values
1 parent 98a582d commit 3648311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/PHPExif/Hydrator/Mutator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class Mutator implements HydratorInterface
3333
public function hydrate($object, array $data)
3434
{
3535
foreach ($data as $property => $value) {
36+
if ($value === false) {
37+
continue;
38+
}
39+
3640
$mutator = $this->determineMutator($property);
3741

3842
if (method_exists($object, $mutator)) {

0 commit comments

Comments
 (0)