Skip to content

Commit 41c6046

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [SecurityBundle] Backport test Fix misspelling variable [DI] minor: use a strict comparision in setDecoratedService Follow-on to #25825: Fix edge case in getParameterOption. keep the context when validating forms
2 parents 91ad61e + 078bbcb commit 41c6046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function setFactoryMethod($factoryMethod)
152152
*/
153153
public function setDecoratedService($id, $renamedId = null, $priority = 0)
154154
{
155-
if ($renamedId && $id == $renamedId) {
155+
if ($renamedId && $id === $renamedId) {
156156
throw new \InvalidArgumentException(sprintf('The decorated service inner name for "%s" must be different than the service name itself.', $id));
157157
}
158158

0 commit comments

Comments
 (0)