[OptionsResolver] Remove Unused Variable from Foreach Cycles
This commit is contained in:
parent
eb99c78358
commit
77f4dbfa10
@ -252,7 +252,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
throw new AccessException('Options cannot be made required from a lazy option or normalizer.');
|
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->defined[$option] = true;
|
||||||
$this->required[$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.');
|
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;
|
$this->defined[$option] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user