Skip to content

Commit d56b1b8

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: Added 'default' color [HttpFoundation] Reload the session after regenerating its id [HttpFoundation] Add a test case to confirm a bug in session migration [2.6] Static Code Analysis for Components and Bundles [Finder] Command::addAtIndex() fails with Command instance argument [DependencyInjection] Freeze also FrozenParameterBag::remove [Twig][Bridge] replaced `extends` with `use` in bootstrap_3_horizontal_layout.html.twig fix CS fixed CS Add a way to reset the singleton [Security] allow to use `method` in XML configs Remove duplicate example Remove var not used due to returning early (introduced in 8982c32) Enhance hhvm test skip message
2 parents 74c4cda + 57490a5 commit d56b1b8

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Dumper/PhpDumper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,8 @@ public function __construct()
862862

863863
if (count($scopes = $this->container->getScopes()) > 0) {
864864
$code .= "\n";
865-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
866-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
865+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
866+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
867867
}
868868

869869
$code .= $this->addMethodMap();
@@ -908,8 +908,8 @@ public function __construct()
908908

909909
$code .= "\n";
910910
if (count($scopes = $this->container->getScopes()) > 0) {
911-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
912-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
911+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
912+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
913913
} else {
914914
$code .= " \$this->scopes = array();\n";
915915
$code .= " \$this->scopeChildren = array();\n";

ParameterBag/FrozenParameterBag.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,14 @@ public function set($name, $value)
6969
{
7070
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
7171
}
72+
73+
/**
74+
* {@inheritdoc}
75+
*
76+
* @api
77+
*/
78+
public function remove($name)
79+
{
80+
throw new LogicException('Impossible to call remove() on a frozen ParameterBag.');
81+
}
7282
}

0 commit comments

Comments
 (0)