@@ -261,10 +261,6 @@ public function setDefault(string $option, $value)
261
261
}
262
262
263
263
/**
264
- * Sets a list of default values.
265
- *
266
- * @param array $defaults The default values to set
267
- *
268
264
* @return $this
269
265
*
270
266
* @throws AccessException If called from a lazy option or normalizer
@@ -284,8 +280,6 @@ public function setDefaults(array $defaults)
284
280
* Returns true if {@link setDefault()} was called for this option.
285
281
* An option is also considered set if it was set to null.
286
282
*
287
- * @param string $option The option name
288
- *
289
283
* @return bool Whether a default value is set
290
284
*/
291
285
public function hasDefault (string $ option )
@@ -321,8 +315,6 @@ public function setRequired($optionNames)
321
315
*
322
316
* An option is required if it was passed to {@link setRequired()}.
323
317
*
324
- * @param string $option The name of the option
325
- *
326
318
* @return bool Whether the option is required
327
319
*/
328
320
public function isRequired (string $ option )
@@ -349,8 +341,6 @@ public function getRequiredOptions()
349
341
* to {@link setDefault()}. This option must be passed explicitly to
350
342
* {@link resolve()}, otherwise an exception will be thrown.
351
343
*
352
- * @param string $option The name of the option
353
- *
354
344
* @return bool Whether the option is missing
355
345
*/
356
346
public function isMissing (string $ option )
@@ -402,8 +392,6 @@ public function setDefined($optionNames)
402
392
* Returns true for any option passed to {@link setDefault()},
403
393
* {@link setRequired()} or {@link setDefined()}.
404
394
*
405
- * @param string $option The option name
406
- *
407
395
* @return bool Whether the option is defined
408
396
*/
409
397
public function isDefined (string $ option )
@@ -516,9 +504,6 @@ public function isDeprecated(string $option): bool
516
504
*
517
505
* The resolved option value is set to the return value of the closure.
518
506
*
519
- * @param string $option The option name
520
- * @param \Closure $normalizer The normalizer
521
- *
522
507
* @return $this
523
508
*
524
509
* @throws UndefinedOptionsException If the option is undefined
@@ -560,10 +545,6 @@ public function setNormalizer(string $option, \Closure $normalizer)
560
545
*
561
546
* The resolved option value is set to the return value of the closure.
562
547
*
563
- * @param string $option The option name
564
- * @param \Closure $normalizer The normalizer
565
- * @param bool $forcePrepend If set to true, prepend instead of appending
566
- *
567
548
* @return $this
568
549
*
569
550
* @throws UndefinedOptionsException If the option is undefined
@@ -687,7 +668,6 @@ public function addAllowedValues(string $option, $allowedValues)
687
668
* acceptable. Additionally, fully-qualified class or interface names may
688
669
* be passed.
689
670
*
690
- * @param string $option The option name
691
671
* @param string|string[] $allowedTypes One or more accepted types
692
672
*
693
673
* @return $this
@@ -722,7 +702,6 @@ public function setAllowedTypes(string $option, $allowedTypes)
722
702
* acceptable. Additionally, fully-qualified class or interface names may
723
703
* be passed.
724
704
*
725
- * @param string $option The option name
726
705
* @param string|string[] $allowedTypes One or more accepted types
727
706
*
728
707
* @return $this
@@ -890,8 +869,6 @@ public function clear()
890
869
* - Options have invalid types;
891
870
* - Options have invalid values.
892
871
*
893
- * @param array $options A map of option names to values
894
- *
895
872
* @return array The merged and validated options
896
873
*
897
874
* @throws UndefinedOptionsException If an option name is undefined
@@ -953,8 +930,7 @@ public function resolve(array $options = [])
953
930
/**
954
931
* Returns the resolved value of an option.
955
932
*
956
- * @param string $option The option name
957
- * @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
933
+ * @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
958
934
*
959
935
* @return mixed The option value
960
936
*
0 commit comments