Skip to content

Commit

Permalink
handle non objects
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Jun 9, 2011
1 parent 65072e6 commit 7b70dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Normalizer/GetSetMethodNormalizer.php
Expand Up @@ -109,7 +109,7 @@ public function denormalize($data, $class, $format = null)
*/
public function supportsNormalization($data, $format = null)
{
return $this->supports(get_class($data));
return is_object($data) && $this->supports(get_class($data));
}

/**
Expand Down

0 comments on commit 7b70dab

Please sign in to comment.