Skip to content

Commit 7c2aaa6

Browse files
Merge branch '2.3' into 2.6
* 2.3: Changed visibility of setUp() and tearDown to protected fixed XSS in the exception handler Php Inspections (EA Extended) - static code analysis includes: [2.3] Remove most refs uses Test with local components instead of waiting for the subtree-splitter when possible Conflicts: src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php src/Symfony/Component/Config/Util/XmlUtils.php src/Symfony/Component/Console/Helper/ProgressHelper.php src/Symfony/Component/Debug/ExceptionHandler.php src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php src/Symfony/Component/Filesystem/Tests/FilesystemTest.php src/Symfony/Component/OptionsResolver/Options.php src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php src/Symfony/Component/Yaml/Inline.php
2 parents 81b7b37 + 6c35102 commit 7c2aaa6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,7 @@ public function createService(Definition $definition, $id, $tryProxy = true)
10041004
public function resolveServices($value)
10051005
{
10061006
if (is_array($value)) {
1007-
foreach ($value as &$v) {
1008-
$v = $this->resolveServices($v);
1009-
}
1007+
$value = array_map(array($this, 'resolveServices'), $value);
10101008
} elseif ($value instanceof Reference) {
10111009
$value = $this->get((string) $value, $value->getInvalidBehavior());
10121010
} elseif ($value instanceof Definition) {

Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,13 +1474,13 @@ private function getNextVariableName()
14741474

14751475
if ('' === $name) {
14761476
$name .= $firstChars[$i%$firstCharsLength];
1477-
$i = intval($i/$firstCharsLength);
1477+
$i = (int) ($i/$firstCharsLength);
14781478
}
14791479

14801480
while ($i > 0) {
14811481
--$i;
14821482
$name .= $nonFirstChars[$i%$nonFirstCharsLength];
1483-
$i = intval($i/$nonFirstCharsLength);
1483+
$i = (int) ($i/$nonFirstCharsLength);
14841484
}
14851485

14861486
++$this->variableCount;

0 commit comments

Comments
 (0)