Skip to content

Commit 73d6da4

Browse files
committed
Merge branch '3.1'
* 3.1: fixed CS fixed CS fixed CS fixed CS tweaked default CS fixer config [HttpKernel] Dont close the output stream in debug move HttpKernel component to require section Fixed oci and sqlsrv merge queries when emulation is disabled - fixes #17284 [Session] fix PDO transaction aborted under PostgreSQL [Console] Use InputInterface inherited doc as possible Mention generating absolute urls in UPGRADE files and CHANGELOG parse embedded mappings only if value is a string add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support FormBuilderInterface: fix getForm() return type. [YAML] Fixed parsing problem with nested DateTime lists Fixed typo in PHPDoc
2 parents abd6ed0 + 21d9319 commit 73d6da4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function isAttributeToNormalize($object, $attributeName, &$context)
238238
*/
239239
private function validateAndDenormalize($currentClass, $attribute, $data, $format, array $context)
240240
{
241-
if (null === $this->propertyTypeExtractor || null === $types = $this->propertyTypeExtractor->getTypes($currentClass, $attribute)){
241+
if (null === $this->propertyTypeExtractor || null === $types = $this->propertyTypeExtractor->getTypes($currentClass, $attribute)) {
242242
return $data;
243243
}
244244

Tests/Encoder/XmlEncoderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ public function testEncodeSerializerXmlRootNodeNameOption()
249249
$this->assertEquals($expected, $serializer->serialize($array, 'xml', $options));
250250
}
251251

252-
public function testEncodeTraversableWhenNormalizable() {
252+
public function testEncodeTraversableWhenNormalizable()
253+
{
253254
$this->encoder = new XmlEncoder();
254255
$serializer = new Serializer(array(new CustomNormalizer()), array('xml' => new XmlEncoder()));
255256
$this->encoder->setSerializer($serializer);
@@ -261,7 +262,6 @@ public function testEncodeTraversableWhenNormalizable() {
261262
XML;
262263

263264
$this->assertEquals($expected, $serializer->serialize(new NormalizableTraversableDummy(), 'xml'));
264-
265265
}
266266

267267
public function testDecode()

Tests/Normalizer/JsonSerializableNormalizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testNormalize()
4949
$this->serializer
5050
->expects($this->once())
5151
->method('normalize')
52-
->will($this->returnCallback(function($data) {
52+
->will($this->returnCallback(function ($data) {
5353
$this->assertArraySubset(array('foo' => 'a', 'bar' => 'b', 'baz' => 'c'), $data);
5454

5555
return 'string_object';
@@ -69,7 +69,7 @@ public function testCircularNormalize()
6969
$this->serializer
7070
->expects($this->once())
7171
->method('normalize')
72-
->will($this->returnCallback(function($data, $format, $context) {
72+
->will($this->returnCallback(function ($data, $format, $context) {
7373
$this->normalizer->normalize($data['qux'], $format, $context);
7474

7575
return 'string_object';

Tests/SerializerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function testNormalizerAware()
324324
->method('setNormalizer')
325325
->with($this->isInstanceOf(NormalizerInterface::class));
326326

327-
new Serializer([$normalizerAware]);
327+
new Serializer(array($normalizerAware));
328328
}
329329

330330
public function testDenormalizerAware()
@@ -334,7 +334,7 @@ public function testDenormalizerAware()
334334
->method('setDenormalizer')
335335
->with($this->isInstanceOf(DenormalizerInterface::class));
336336

337-
new Serializer([$denormalizerAware]);
337+
new Serializer(array($denormalizerAware));
338338
}
339339
}
340340

0 commit comments

Comments
 (0)