-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @throws annotations in DenormalizerInterface::denormalize() and N…
…ormalizerInterface::normalize().
- Loading branch information
1 parent
2107dee
commit cbf5b9c
Showing
11 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/BadMethodCallException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/CircularReferenceException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class CircularReferenceException extends RuntimeException | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/ExceptionInterface.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
interface ExceptionInterface extends \Throwable | ||
{ | ||
} |
20 changes: 20 additions & 0 deletions
20
stubs/Symfony/Component/Serializer/Exception/ExtraAttributesException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class ExtraAttributesException extends RuntimeException | ||
{ | ||
/** | ||
* @param string[] $extraAttributes | ||
*/ | ||
public function __construct(array $extraAttributes, \Throwable $previous = null) | ||
{ | ||
} | ||
|
||
/** | ||
* @return string[] | ||
*/ | ||
public function getExtraAttributes() | ||
{ | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/InvalidArgumentException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/LogicException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class LogicException extends \LogicException implements ExceptionInterface | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/RuntimeException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class RuntimeException extends \RuntimeException implements ExceptionInterface | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Component/Serializer/Exception/UnexpectedValueException.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Serializer\Exception; | ||
|
||
class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters