Skip to content

Commit 57490a5

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: Added 'default' color [HttpFoundation] Reload the session after regenerating its id [HttpFoundation] Add a test case to confirm a bug in session migration [Finder] Command::addAtIndex() fails with Command instance argument [DependencyInjection] Freeze also FrozenParameterBag::remove fix CS fixed CS Add a way to reset the singleton [Security] allow to use `method` in XML configs Remove var not used due to returning early (introduced in 8982c32) Enhance hhvm test skip message
2 parents d9fe2c3 + 973f53c commit 57490a5

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
@@ -856,8 +856,8 @@ public function __construct()
856856

857857
if (count($scopes = $this->container->getScopes()) > 0) {
858858
$code .= "\n";
859-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
860-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
859+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
860+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
861861
}
862862

863863
$code .= $this->addMethodMap();
@@ -902,8 +902,8 @@ public function __construct()
902902

903903
$code .= "\n";
904904
if (count($scopes = $this->container->getScopes()) > 0) {
905-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
906-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
905+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
906+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
907907
} else {
908908
$code .= " \$this->scopes = array();\n";
909909
$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)