Skip to content

Commit b5854c3

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: fixed CS [Process] fixed some volatile tests [HttpKernel] fixed a volatile test [HttpFoundation] fixed some volatile tests Use getPathname() instead of string casting to get BinaryFileReponse file path Conflicts: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php src/Symfony/Component/Config/Definition/ReferenceDumper.php src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php src/Symfony/Component/Console/Application.php src/Symfony/Component/Console/Tests/ApplicationTest.php src/Symfony/Component/Filesystem/Exception/IOException.php src/Symfony/Component/Form/Extension/Templating/TemplatingExtension.php src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php src/Symfony/Component/PropertyAccess/PropertyAccessor.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTest.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php src/Symfony/Component/Routing/Tests/Loader/AnnotationClassLoaderTest.php src/Symfony/Component/Serializer/Encoder/XmlEncoder.php src/Symfony/Component/Validator/Constraints/CollectionValidator.php src/Symfony/Component/Validator/Tests/ExecutionContextTest.php
2 parents 8b0b2c2 + 8711b73 commit b5854c3

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

Encoder/JsonDecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function resolveContext(array $context)
123123
$defaultOptions = array(
124124
'json_decode_associative' => $this->associative,
125125
'json_decode_recursion_depth' => $this->recursionDepth,
126-
'json_decode_options' => 0
126+
'json_decode_options' => 0,
127127
);
128128

129129
return array_merge($defaultOptions, $context);

Encoder/JsonEncode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class JsonEncode implements EncoderInterface
2020
{
21-
private $options ;
21+
private $options;
2222
private $lastError = JSON_ERROR_NONE;
2323

2424
public function __construct($bitmask = 0)

Tests/Encoder/XmlEncoderTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ public function testAttributes()
6767
$obj->xmlFoo = array(
6868
'foo-bar' => array(
6969
'@id' => 1,
70-
'@name' => 'Bar'
70+
'@name' => 'Bar',
7171
),
7272
'Foo' => array(
7373
'Bar' => "Test",
74-
'@Type' => 'test'
74+
'@Type' => 'test',
7575
),
7676
'föo_bär' => 'a',
7777
"Bar" => array(1,2,3),
@@ -141,7 +141,7 @@ public function testEncodeScalarRootAttributes()
141141
{
142142
$array = array(
143143
'#' => 'Paul',
144-
'@gender' => 'm'
144+
'@gender' => 'm',
145145
);
146146

147147
$expected = '<?xml version="1.0"?>'."\n".
@@ -154,7 +154,7 @@ public function testEncodeRootAttributes()
154154
{
155155
$array = array(
156156
'firstname' => 'Paul',
157-
'@gender' => 'm'
157+
'@gender' => 'm',
158158
);
159159

160160
$expected = '<?xml version="1.0"?>'."\n".
@@ -247,7 +247,7 @@ public function testDecodeScalarRootAttributes()
247247

248248
$expected = array(
249249
'#' => 'Peter',
250-
'@gender' => 'M'
250+
'@gender' => 'M',
251251
);
252252

253253
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -261,7 +261,7 @@ public function testDecodeRootAttributes()
261261
$expected = array(
262262
'firstname' => 'Peter',
263263
'lastname' => 'Mac Calloway',
264-
'@gender' => 'M'
264+
'@gender' => 'M',
265265
);
266266

267267
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -280,8 +280,8 @@ public function testDecodeArray()
280280
$expected = array(
281281
'people' => array('person' => array(
282282
array('firstname' => 'Benjamin', 'lastname' => 'Alexandre'),
283-
array('firstname' => 'Damien', 'lastname' => 'Clay')
284-
))
283+
array('firstname' => 'Damien', 'lastname' => 'Clay'),
284+
)),
285285
);
286286

287287
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -293,11 +293,11 @@ public function testDecodeWithoutItemHash()
293293
$obj->xmlFoo = array(
294294
'foo-bar' => array(
295295
'@key' => "value",
296-
'item' => array("@key" => 'key', "key-val" => 'val')
296+
'item' => array("@key" => 'key', "key-val" => 'val'),
297297
),
298298
'Foo' => array(
299299
'Bar' => "Test",
300-
'@Type' => 'test'
300+
'@Type' => 'test',
301301
),
302302
'föo_bär' => 'a',
303303
"Bar" => array(1,2,3),
@@ -306,11 +306,11 @@ public function testDecodeWithoutItemHash()
306306
$expected = array(
307307
'foo-bar' => array(
308308
'@key' => "value",
309-
'key' => array('@key' => 'key', "key-val" => 'val')
309+
'key' => array('@key' => 'key', "key-val" => 'val'),
310310
),
311311
'Foo' => array(
312312
'Bar' => "Test",
313-
'@Type' => 'test'
313+
'@Type' => 'test',
314314
),
315315
'föo_bär' => 'a',
316316
"Bar" => array(1,2,3),

Tests/Fixtures/DenormalizableDummy.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
class DenormalizableDummy implements DenormalizableInterface
1818
{
19-
2019
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array())
2120
{
22-
2321
}
24-
2522
}

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function provideCallbacks()
210210
),
211211
'baz',
212212
array('foo' => '', 'bar' => null),
213-
'Null an item'
213+
'Null an item',
214214
),
215215
array(
216216
array(

0 commit comments

Comments
 (0)