Skip to content

Commit f1b99f1

Browse files
Cleanup more @return annotations
1 parent 4b78e55 commit f1b99f1

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

OptionsResolver.php

+11-13
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function setDefaults(array $defaults)
280280
* Returns true if {@link setDefault()} was called for this option.
281281
* An option is also considered set if it was set to null.
282282
*
283-
* @return bool Whether a default value is set
283+
* @return bool
284284
*/
285285
public function hasDefault(string $option)
286286
{
@@ -315,7 +315,7 @@ public function setRequired($optionNames)
315315
*
316316
* An option is required if it was passed to {@link setRequired()}.
317317
*
318-
* @return bool Whether the option is required
318+
* @return bool
319319
*/
320320
public function isRequired(string $option)
321321
{
@@ -325,7 +325,7 @@ public function isRequired(string $option)
325325
/**
326326
* Returns the names of all required options.
327327
*
328-
* @return string[] The names of the required options
328+
* @return string[]
329329
*
330330
* @see isRequired()
331331
*/
@@ -341,7 +341,7 @@ public function getRequiredOptions()
341341
* to {@link setDefault()}. This option must be passed explicitly to
342342
* {@link resolve()}, otherwise an exception will be thrown.
343343
*
344-
* @return bool Whether the option is missing
344+
* @return bool
345345
*/
346346
public function isMissing(string $option)
347347
{
@@ -351,9 +351,7 @@ public function isMissing(string $option)
351351
/**
352352
* Returns the names of all options missing a default value.
353353
*
354-
* @return string[] The names of the missing options
355-
*
356-
* @see isMissing()
354+
* @return string[]
357355
*/
358356
public function getMissingOptions()
359357
{
@@ -392,7 +390,7 @@ public function setDefined($optionNames)
392390
* Returns true for any option passed to {@link setDefault()},
393391
* {@link setRequired()} or {@link setDefined()}.
394392
*
395-
* @return bool Whether the option is defined
393+
* @return bool
396394
*/
397395
public function isDefined(string $option)
398396
{
@@ -402,7 +400,7 @@ public function isDefined(string $option)
402400
/**
403401
* Returns the names of all defined options.
404402
*
405-
* @return string[] The names of the defined options
403+
* @return string[]
406404
*
407405
* @see isDefined()
408406
*/
@@ -869,7 +867,7 @@ public function clear()
869867
* - Options have invalid types;
870868
* - Options have invalid values.
871869
*
872-
* @return array The merged and validated options
870+
* @return array
873871
*
874872
* @throws UndefinedOptionsException If an option name is undefined
875873
* @throws InvalidOptionsException If an option doesn't fulfill the
@@ -932,7 +930,7 @@ public function resolve(array $options = [])
932930
*
933931
* @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
934932
*
935-
* @return mixed The option value
933+
* @return mixed
936934
*
937935
* @throws AccessException If accessing this method outside of
938936
* {@link resolve()}
@@ -1194,7 +1192,7 @@ private function verifyTypes(string $type, $value, array &$invalidTypes, int $le
11941192
*
11951193
* @param string $option The option name
11961194
*
1197-
* @return bool Whether the option is set
1195+
* @return bool
11981196
*
11991197
* @throws AccessException If accessing this method outside of {@link resolve()}
12001198
*
@@ -1241,7 +1239,7 @@ public function offsetUnset($option)
12411239
*
12421240
* This may be only a subset of the defined options.
12431241
*
1244-
* @return int Number of options
1242+
* @return int
12451243
*
12461244
* @throws AccessException If accessing this method outside of {@link resolve()}
12471245
*

0 commit comments

Comments
 (0)