Skip to content

Commit 498a0b4

Browse files
@throws annotations should go after @return
1 parent 87ba259 commit 498a0b4

File tree

6 files changed

+2
-24
lines changed

6 files changed

+2
-24
lines changed

Encoder/XmlEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ private function needsCdataWrapping($val)
460460
* @param \DOMNode $node
461461
* @param mixed $val
462462
*
463-
* @throws UnexpectedValueException
464-
*
465463
* @return bool
464+
*
465+
* @throws UnexpectedValueException
466466
*/
467467
private function selectNodeType(\DOMNode $node, $val)
468468
{

Normalizer/DenormalizableInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
1614
/**
1715
* Defines the most basic interface a class must implement to be denormalizable.
1816
*
@@ -36,8 +34,6 @@ interface DenormalizableInterface
3634
* based on different input formats
3735
* @param array $context options for denormalizing
3836
*
39-
* @throws ExceptionInterface
40-
*
4137
* @return object
4238
*/
4339
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array());

Normalizer/DenormalizerInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
1614
/**
1715
* Defines the interface of denormalizers.
1816
*
@@ -28,8 +26,6 @@ interface DenormalizerInterface
2826
* @param string $format format the given data was extracted from
2927
* @param array $context options available to the denormalizer
3028
*
31-
* @throws ExceptionInterface
32-
*
3329
* @return object
3430
*/
3531
public function denormalize($data, $class, $format = null, array $context = array());

Normalizer/NormalizableInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
1614
/**
1715
* Defines the most basic interface a class must implement to be normalizable.
1816
*
@@ -35,8 +33,6 @@ interface NormalizableInterface
3533
* based on different output formats.
3634
* @param array $context Options for normalizing this object
3735
*
38-
* @throws ExceptionInterface
39-
*
4036
* @return array|scalar
4137
*/
4238
public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array());

Normalizer/NormalizerInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
1614
/**
1715
* Defines the interface of normalizers.
1816
*
@@ -27,8 +25,6 @@ interface NormalizerInterface
2725
* @param string $format format the normalization result will be encoded as
2826
* @param array $context Context options for the normalizer
2927
*
30-
* @throws ExceptionInterface
31-
*
3228
* @return array|scalar
3329
*/
3430
public function normalize($object, $format = null, array $context = array());

SerializerInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer;
1313

14-
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
1614
/**
1715
* Defines the interface of the Serializer.
1816
*
@@ -27,8 +25,6 @@ interface SerializerInterface
2725
* @param string $format format name
2826
* @param array $context options normalizers/encoders have access to
2927
*
30-
* @throws ExceptionInterface
31-
*
3228
* @return string
3329
*/
3430
public function serialize($data, $format, array $context = array());
@@ -41,8 +37,6 @@ public function serialize($data, $format, array $context = array());
4137
* @param string $format
4238
* @param array $context
4339
*
44-
* @throws ExceptionInterface
45-
*
4640
* @return object
4741
*/
4842
public function deserialize($data, $type, $format, array $context = array());

0 commit comments

Comments
 (0)