Skip to content

Commit

Permalink
Tune class hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
scaytrase committed May 2, 2021
1 parent 7cf6937 commit 667f2c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Exception/NonCastableTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace JMS\Serializer\Exception;

class NonCastableTypeException extends RuntimeException
abstract class NonCastableTypeException extends RuntimeException
{
/**
* @var mixed
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/NonFloatCastableTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace JMS\Serializer\Exception;

class NonFloatCastableTypeException extends NonCastableTypeException
final class NonFloatCastableTypeException extends NonCastableTypeException
{
/**
* @param mixed $value
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/NonIntCastableTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace JMS\Serializer\Exception;

class NonIntCastableTypeException extends NonCastableTypeException
final class NonIntCastableTypeException extends NonCastableTypeException
{
/**
* @param mixed $value
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/NonStringCastableTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace JMS\Serializer\Exception;

class NonStringCastableTypeException extends NonCastableTypeException
final class NonStringCastableTypeException extends NonCastableTypeException
{
/**
* @param mixed $value
Expand Down

0 comments on commit 667f2c0

Please sign in to comment.