@@ -258,7 +258,7 @@ public function setRequired($optionNames)
258
258
throw new AccessException ('Options cannot be made required from a lazy option or normalizer. ' );
259
259
}
260
260
261
- foreach ((array ) $ optionNames as $ key => $ option ) {
261
+ foreach ((array ) $ optionNames as $ option ) {
262
262
$ this ->defined [$ option ] = true ;
263
263
$ this ->required [$ option ] = true ;
264
264
}
@@ -339,7 +339,7 @@ public function setDefined($optionNames)
339
339
throw new AccessException ('Options cannot be defined from a lazy option or normalizer. ' );
340
340
}
341
341
342
- foreach ((array ) $ optionNames as $ key => $ option ) {
342
+ foreach ((array ) $ optionNames as $ option ) {
343
343
$ this ->defined [$ option ] = true ;
344
344
}
345
345
@@ -686,14 +686,8 @@ public function remove($optionNames)
686
686
}
687
687
688
688
foreach ((array ) $ optionNames as $ option ) {
689
- unset($ this ->defined [$ option ]);
690
- unset($ this ->defaults [$ option ]);
691
- unset($ this ->required [$ option ]);
692
- unset($ this ->resolved [$ option ]);
693
- unset($ this ->lazy [$ option ]);
694
- unset($ this ->normalizers [$ option ]);
695
- unset($ this ->allowedTypes [$ option ]);
696
- unset($ this ->allowedValues [$ option ]);
689
+ unset($ this ->defined [$ option ], $ this ->defaults [$ option ], $ this ->required [$ option ], $ this ->resolved [$ option ]);
690
+ unset($ this ->lazy [$ option ], $ this ->normalizers [$ option ], $ this ->allowedTypes [$ option ], $ this ->allowedValues [$ option ]);
697
691
}
698
692
699
693
return $ this ;
0 commit comments