[OptionsResolver] Remove Unused Variable from Foreach Cycles

This commit is contained in:
Vadim Kharitonov 2015-03-03 17:59:03 +03:00
parent eb99c78358
commit 77f4dbfa10

View File

@ -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;
} }