Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Nov 15, 2019
1 parent a28f290 commit a18ec02
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -39,9 +39,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
if (null !== $object->getFoo()) {
$data->{'foo'} = $object->getFoo();
}
$data->{'foo'} = $object->getFoo();
$data->{'bar'} = $object->getBar();
return $data;
}
Expand Down

0 comments on commit a18ec02

Please sign in to comment.