Skip to content

Commit eb067d2

Browse files
Backport type fixes
1 parent 6f33be3 commit eb067d2

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

OptionConfigurator.php

-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public function __construct(string $name, OptionsResolver $resolver)
2828
/**
2929
* Adds allowed types for this option.
3030
*
31-
* @param string ...$types One or more accepted types
32-
*
3331
* @return $this
3432
*
3533
* @throws AccessException If called from a lazy option or normalizer
@@ -100,8 +98,6 @@ public function deprecated(string $package, string $version, $message = 'The opt
10098
/**
10199
* Sets the normalizer for this option.
102100
*
103-
* @param \Closure $normalizer The normalizer
104-
*
105101
* @return $this
106102
*
107103
* @throws AccessException If called from a lazy option or normalizer

OptionsResolver.php

+1-14
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ public function setDefaults(array $defaults)
270270
* Returns true if {@link setDefault()} was called for this option.
271271
* An option is also considered set if it was set to null.
272272
*
273-
* @param string $option The option name
274-
*
275273
* @return bool Whether a default value is set
276274
*/
277275
public function hasDefault(string $option)
@@ -307,8 +305,6 @@ public function setRequired($optionNames)
307305
*
308306
* An option is required if it was passed to {@link setRequired()}.
309307
*
310-
* @param string $option The name of the option
311-
*
312308
* @return bool Whether the option is required
313309
*/
314310
public function isRequired(string $option)
@@ -335,8 +331,6 @@ public function getRequiredOptions()
335331
* to {@link setDefault()}. This option must be passed explicitly to
336332
* {@link resolve()}, otherwise an exception will be thrown.
337333
*
338-
* @param string $option The name of the option
339-
*
340334
* @return bool Whether the option is missing
341335
*/
342336
public function isMissing(string $option)
@@ -388,8 +382,6 @@ public function setDefined($optionNames)
388382
* Returns true for any option passed to {@link setDefault()},
389383
* {@link setRequired()} or {@link setDefined()}.
390384
*
391-
* @param string $option The option name
392-
*
393385
* @return bool Whether the option is defined
394386
*/
395387
public function isDefined(string $option)
@@ -502,8 +494,6 @@ public function isDeprecated(string $option): bool
502494
*
503495
* The resolved option value is set to the return value of the closure.
504496
*
505-
* @param string $option The option name
506-
*
507497
* @return $this
508498
*
509499
* @throws UndefinedOptionsException If the option is undefined
@@ -668,7 +658,6 @@ public function addAllowedValues(string $option, $allowedValues)
668658
* acceptable. Additionally, fully-qualified class or interface names may
669659
* be passed.
670660
*
671-
* @param string $option The option name
672661
* @param string|string[] $allowedTypes One or more accepted types
673662
*
674663
* @return $this
@@ -703,7 +692,6 @@ public function setAllowedTypes(string $option, $allowedTypes)
703692
* acceptable. Additionally, fully-qualified class or interface names may
704693
* be passed.
705694
*
706-
* @param string $option The option name
707695
* @param string|string[] $allowedTypes One or more accepted types
708696
*
709697
* @return $this
@@ -905,8 +893,7 @@ public function resolve(array $options = [])
905893
/**
906894
* Returns the resolved value of an option.
907895
*
908-
* @param string $option The option name
909-
* @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
896+
* @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
910897
*
911898
* @return mixed The option value
912899
*

0 commit comments

Comments
 (0)