Skip to content

Commit

Permalink
Fixing tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Dec 10, 2019
1 parent 3d2cdda commit c209b22
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
$data->{'foo'} = $object->getFoo();
if (null !== $object->getFoo()) {
$data->{'foo'} = $object->getFoo();
}
return $data;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
$data->{'foo'} = $object->getFoo();
if (null !== $object->getFoo()) {
$data->{'foo'} = $object->getFoo();
}
return $data;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
$data->{'foo'} = $object->getFoo();
if (null !== $object->getFoo()) {
$data->{'foo'} = $object->getFoo();
}
return $data;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
$data->{'foo'} = $object->getFoo();
if (null !== $object->getFoo()) {
$data->{'foo'} = $object->getFoo();
}
return $data;
}
}

0 comments on commit c209b22

Please sign in to comment.