Skip to content

Commit 531bb2a

Browse files
avtop3Kovalchuk
andauthored
Prevent dynamic property creation due to JsonMapperHelper (#110)
Co-authored-by: Kovalchuk <[email protected]>
1 parent 75c5fdf commit 531bb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonMapperHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function setUndefinedProperty($object, $propName, $jsonValue)
2121
$object->{$propName} = $jsonValue;
2222
$object->customFields[$propName] = $jsonValue;
2323
}
24-
} else {
24+
} elseif (isset($object->{$propName})) {
2525
$object->{$propName} = $jsonValue;
2626
}
2727
}

0 commit comments

Comments
 (0)