Skip to content

Commit cb850fe

Browse files
Fix merge
1 parent 011d2dc commit cb850fe

File tree

10 files changed

+29
-27
lines changed

10 files changed

+29
-27
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ private function hasReference($id, array $arguments, $deep = false, array &$visi
12681268
return true;
12691269
}
12701270

1271-
if ($deep && !isset($visited[$argumentId]) && 'service_container' !== (string) $argument) {
1271+
if ($deep && !isset($visited[$argumentId]) && 'service_container' !== $argumentId) {
12721272
$visited[$argumentId] = true;
12731273

12741274
$service = $this->container->getDefinition($argumentId);

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services13.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public function __construct()
3636
$this->aliases = array();
3737
}
3838

39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public function compile()
43+
{
44+
throw new LogicException('You cannot compile a dumped frozen container.');
45+
}
46+
3947
/**
4048
* Gets the 'bar' service.
4149
*

src/Symfony/Component/Serializer/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)

src/Symfony/Component/Serializer/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
}

src/Symfony/Component/Serializer/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());

src/Symfony/Component/Serializer/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
}

src/Symfony/Component/Serializer/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

src/Symfony/Component/Serializer/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
{

src/Symfony/Component/Serializer/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());

src/Symfony/Component/Yaml/Tests/InlineTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ public function getTestsForDump()
398398

399399
array('[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%'), true, '@service_container')),
400400

401-
array('[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%'), true, '@service_container')),
402-
403401
array('{ foo: { bar: { 1: 2, baz: 3 } } }', array('foo' => array('bar' => array(1 => 2, 'baz' => 3)))),
404402
);
405403
}

0 commit comments

Comments
 (0)