Skip to content

Commit 38d6fbf

Browse files
committed
bug #2110 fix(symfony): serializer (GuigZ-)
This PR was submitted for the 2.x branch but it was squashed and merged into the 2.7 branch instead (closes #2110). Discussion ---------- fix(symfony): serializer Use case : https://github.com/GuigZ-/fosrest-symfony-44-serializer Just start a server : `bin/console server:start` Commits ------- 98aebda fix(symfony): serializer
2 parents df8536c + 98aebda commit 38d6fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Serializer/Normalizer/ExceptionNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public function normalize($object, $format = null, array $context = [])
4141
*/
4242
public function supportsNormalization($data, $format = null)
4343
{
44-
return $data instanceof \Exception;
44+
return $data instanceof \Throwable;
4545
}
4646
}

0 commit comments

Comments
 (0)