Skip to content

Commit 05e1c6e

Browse files
committed
[DependencyInjection] Freeze also FrozenParameterBag::remove
1 parent 82cea2c commit 05e1c6e

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)