Skip to content

Commit 7383e2c

Browse files
author
Vadim Kharitonov
committed
[OptionsResolver] Remove Unused Variable from Foreach Cycles
1 parent 88a17e5 commit 7383e2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OptionsResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function setRequired($optionNames)
252252
throw new AccessException('Options cannot be made required from a lazy option or normalizer.');
253253
}
254254

255-
foreach ((array) $optionNames as $key => $option) {
255+
foreach ((array) $optionNames as $option) {
256256
$this->defined[$option] = true;
257257
$this->required[$option] = true;
258258
}
@@ -333,7 +333,7 @@ public function setDefined($optionNames)
333333
throw new AccessException('Options cannot be defined from a lazy option or normalizer.');
334334
}
335335

336-
foreach ((array) $optionNames as $key => $option) {
336+
foreach ((array) $optionNames as $option) {
337337
$this->defined[$option] = true;
338338
}
339339

0 commit comments

Comments
 (0)