Skip to content

Commit a2dafdc

Browse files
committed
[OptionsResolver] Remove BC layer for deprecatedNestedOptions in Symfony 8.0
1 parent d782d84 commit a2dafdc

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

OptionsResolver.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ class OptionsResolver implements Options
6464
*/
6565
private array $nested = [];
6666

67-
/**
68-
* BC layer. Remove in Symfony 8.0.
69-
*
70-
* @var array<string, true>
71-
*/
72-
private array $deprecatedNestedOptions = [];
73-
7467
/**
7568
* The names of required options.
7669
*/
@@ -222,23 +215,13 @@ public function setDefault(string $option, mixed $value): static
222215
// Make sure the option is processed
223216
unset($this->resolved[$option]);
224217

225-
// BC layer. Remove in Symfony 8.0.
226-
if (isset($this->deprecatedNestedOptions[$option])) {
227-
unset($this->nested[$option]);
228-
}
229-
230218
return $this;
231219
}
232220
}
233221

234222
// This option is not lazy anymore
235223
unset($this->lazy[$option]);
236224

237-
// BC layer. Remove in Symfony 8.0.
238-
if (isset($this->deprecatedNestedOptions[$option])) {
239-
unset($this->nested[$option]);
240-
}
241-
242225
// Yet undefined options can be marked as resolved, because we only need
243226
// to resolve options with lazy closures, normalizers or validation
244227
// rules, none of which can exist for undefined options

0 commit comments

Comments
 (0)