Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Oct 31, 2018
1 parent e28f0af commit 110bebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphNavigator/DeserializationGraphNavigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function accept($data, ?array $type = null)
// Sometimes data can convey null but is not of a null type.
// Visitors can have the power to add this custom null evaluation
// If null is explicitly allowed we should skip this
if (!$this->shouldDeserializeNull
if (false === $this->shouldDeserializeNull
&& $this->visitor instanceof NullAwareVisitorInterface
&& true === $this->visitor->isNull($data)
) {
Expand Down Expand Up @@ -215,7 +215,7 @@ public function accept($data, ?array $type = null)
try {
$v = $this->visitor->visitProperty($propertyMetadata, $data);

if ($v !== null || $this->shouldDeserializeNull === true) {
if (null !== $v || true === $this->shouldDeserializeNull) {
$this->accessor->setValue($object, $v, $propertyMetadata, $this->context);
}
} catch (NotAcceptableException $e) {
Expand Down

0 comments on commit 110bebf

Please sign in to comment.