Skip to content

Commit 87ba259

Browse files
Fix merge
1 parent 63353bf commit 87ba259

File tree

7 files changed

+20
-24
lines changed

7 files changed

+20
-24
lines changed

Encoder/XmlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ private function needsCdataWrapping($val)
461461
* @param mixed $val
462462
*
463463
* @throws UnexpectedValueException
464-
*
464+
*
465465
* @return bool
466466
*/
467467
private function selectNodeType(\DOMNode $node, $val)

Normalizer/DenormalizableInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\Exception;
14+
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1515

1616
/**
1717
* Defines the most basic interface a class must implement to be denormalizable.
@@ -36,9 +36,9 @@ interface DenormalizableInterface
3636
* based on different input formats
3737
* @param array $context options for denormalizing
3838
*
39-
* @return object
39+
* @throws ExceptionInterface
4040
*
41-
* @throws Exception
41+
* @return object
4242
*/
4343
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array());
4444
}

Normalizer/DenormalizerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\Exception;
14+
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1515

1616
/**
1717
* Defines the interface of denormalizers.
@@ -28,8 +28,8 @@ interface DenormalizerInterface
2828
* @param string $format format the given data was extracted from
2929
* @param array $context options available to the denormalizer
3030
*
31-
* @throws Exception
32-
*
31+
* @throws ExceptionInterface
32+
*
3333
* @return object
3434
*/
3535
public function denormalize($data, $class, $format = null, array $context = array());

Normalizer/NormalizableInterface.php

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

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\Exception;
14+
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1515

1616
/**
1717
* Defines the most basic interface a class must implement to be normalizable.
@@ -35,9 +35,9 @@ interface NormalizableInterface
3535
* based on different output formats.
3636
* @param array $context Options for normalizing this object
3737
*
38-
* @throws Exception
39-
*
40-
* @return array|string|bool|int|float|null
38+
* @throws ExceptionInterface
39+
*
40+
* @return array|scalar
4141
*/
4242
public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array());
4343
}

Normalizer/NormalizerInterface.php

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

1212
namespace Symfony\Component\Serializer\Normalizer;
1313

14-
use Symfony\Component\Serializer\Exception\Exception;
14+
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1515

1616
/**
1717
* Defines the interface of normalizers.
@@ -27,9 +27,9 @@ interface NormalizerInterface
2727
* @param string $format format the normalization result will be encoded as
2828
* @param array $context Context options for the normalizer
2929
*
30-
* @throws Exception
31-
*
32-
* @return array|string|bool|int|float|null
30+
* @throws ExceptionInterface
31+
*
32+
* @return array|scalar
3333
*/
3434
public function normalize($object, $format = null, array $context = array());
3535

Serializer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ public function supportsDenormalization($data, $type, $format = null)
183183
* @param string $format format name, present to give the option to normalizers to act differently based on formats
184184
*
185185
* @return NormalizerInterface|null
186-
*
187-
* @throws RuntimeException
188186
*/
189187
private function getNormalizer($data, $format)
190188
{
@@ -203,8 +201,6 @@ private function getNormalizer($data, $format)
203201
* @param string $format format name, present to give the option to normalizers to act differently based on formats
204202
*
205203
* @return DenormalizerInterface|null
206-
*
207-
* @throws RuntimeException
208204
*/
209205
private function getDenormalizer($data, $class, $format)
210206
{

SerializerInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Serializer;
1313

14-
use Symfony\Component\Serializer\Exception\Exception;
14+
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1515

1616
/**
1717
* Defines the interface of the Serializer.
@@ -27,8 +27,8 @@ interface SerializerInterface
2727
* @param string $format format name
2828
* @param array $context options normalizers/encoders have access to
2929
*
30-
* @throws Exception
31-
*
30+
* @throws ExceptionInterface
31+
*
3232
* @return string
3333
*/
3434
public function serialize($data, $format, array $context = array());
@@ -41,8 +41,8 @@ public function serialize($data, $format, array $context = array());
4141
* @param string $format
4242
* @param array $context
4343
*
44-
* @throws Exception
45-
*
44+
* @throws ExceptionInterface
45+
*
4646
* @return object
4747
*/
4848
public function deserialize($data, $type, $format, array $context = array());

0 commit comments

Comments
 (0)