Skip to content

Commit 973f53c

Browse files
committed
bug #15220 [DependencyInjection] Freeze also FrozenParameterBag::remove (lyrixx)
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] Freeze also FrozenParameterBag::remove | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 4a72c44 [DependencyInjection] Freeze also FrozenParameterBag::remove
2 parents 0f5b5ce + 05e1c6e commit 973f53c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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)