Skip to content

Commit fa33bcf

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: Update validators.eu.xlf fixed CS remove unused imports Unify null comparisons [EventDispatcher] don't count empty listeners [Process] Fix unit tests in sigchild environment [Process] fix signal handling in wait() [BrowserKit] refactor code and fix unquoted regex Fixed server HTTP_HOST port uri conversion Bring code into standard [Process] Add test to verify fix for issue #11421 [Process] Fixes issue #11421 [DependencyInjection] Pass a Scope instance instead of a scope name. Conflicts: src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php
2 parents 32bae49 + 6b23ec5 commit fa33bcf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getConfigTreeBuilder()
4141
->end()
4242
->arrayNode('trusted_proxies')
4343
->beforeNormalization()
44-
->ifTrue(function ($v) { return !is_array($v) && !is_null($v); })
44+
->ifTrue(function ($v) { return !is_array($v) && null !== $v; })
4545
->then(function ($v) { return is_bool($v) ? array() : preg_split('/\s*,\s*/', $v); })
4646
->end()
4747
->prototype('scalar')

Resources/views/Form/choice_widget_collapsed.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<select
2-
<?php if ($required && $empty_value === null && $empty_value_in_choices === false && $multiple === false):
2+
<?php if ($required && null === $empty_value && $empty_value_in_choices === false && $multiple === false):
33
$required = false;
44
endif; ?>
55
<?php echo $view['form']->block($form, 'widget_attributes', array(

Test/WebTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ protected static function getPhpUnitXmlDir()
6969
}
7070

7171
$dir = static::getPhpUnitCliConfigArgument();
72-
if ($dir === null &&
72+
if (null === $dir &&
7373
(is_file(getcwd().DIRECTORY_SEPARATOR.'phpunit.xml') ||
7474
is_file(getcwd().DIRECTORY_SEPARATOR.'phpunit.xml.dist'))) {
7575
$dir = getcwd();
7676
}
7777

7878
// Can't continue
79-
if ($dir === null) {
79+
if (null === $dir) {
8080
throw new \RuntimeException('Unable to guess the Kernel directory.');
8181
}
8282

Tests/DependencyInjection/Compiler/SerializerPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testServicesAreOrderedAccordingToPriority()
9696
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass',
9797
'findAndSortTaggedServices'
9898
);
99-
$method->setAccessible(TRUE);
99+
$method->setAccessible(true);
100100

101101
$actual = $method->invoke($serializerPass, 'tag', $container);
102102

0 commit comments

Comments
 (0)