minor #13834 [OptionsResolver] Remove Unused Variable from Foreach Cycles (vadim2404)
This PR was merged into the 2.6 branch.
Discussion
----------
[OptionsResolver] Remove Unused Variable from Foreach Cycles
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
77f4dbf
[OptionsResolver] Remove Unused Variable from Foreach Cycles
This commit is contained in:
commit
0e3090b19c
@ -252,7 +252,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
||||
throw new AccessException('Options cannot be made required from a lazy option or normalizer.');
|
||||
}
|
||||
|
||||
foreach ((array) $optionNames as $key => $option) {
|
||||
foreach ((array) $optionNames as $option) {
|
||||
$this->defined[$option] = true;
|
||||
$this->required[$option] = true;
|
||||
}
|
||||
@ -333,7 +333,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
||||
throw new AccessException('Options cannot be defined from a lazy option or normalizer.');
|
||||
}
|
||||
|
||||
foreach ((array) $optionNames as $key => $option) {
|
||||
foreach ((array) $optionNames as $option) {
|
||||
$this->defined[$option] = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user