Skip to content

Commit

Permalink
The interface says the normalized value is a scalar, so ignore non sc…
Browse files Browse the repository at this point in the history
…alar vaues
  • Loading branch information
Henrik Bjornskov committed Jul 2, 2015
1 parent 4786fa3 commit 0692219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Tacker/Normalizer/ChainNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function add(Normalizer $normalizer)
*/
public function normalize($value)
{
if (!is_scalar($value)) {
return $value;
}

foreach ($this->normalizers as $normalizer) {
$value = $normalizer->normalize($value);
}
Expand Down

0 comments on commit 0692219

Please sign in to comment.