Skip to content

Commit cb06658

Browse files
committed
fixed @return when returning this or static
1 parent f8d620f commit cb06658

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

OptionsResolver.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
152152
* @param string $option The name of the option
153153
* @param mixed $value The default value of the option
154154
*
155-
* @return OptionsResolver This instance
155+
* @return $this
156156
*
157157
* @throws AccessException If called from a lazy option or normalizer
158158
*/
@@ -215,7 +215,7 @@ public function setDefault($option, $value)
215215
*
216216
* @param array $defaults The default values to set
217217
*
218-
* @return OptionsResolver This instance
218+
* @return $this
219219
*
220220
* @throws AccessException If called from a lazy option or normalizer
221221
*/
@@ -248,7 +248,7 @@ public function hasDefault($option)
248248
*
249249
* @param string|string[] $optionNames One or more option names
250250
*
251-
* @return OptionsResolver This instance
251+
* @return $this
252252
*
253253
* @throws AccessException If called from a lazy option or normalizer
254254
*/
@@ -329,7 +329,7 @@ public function getMissingOptions()
329329
*
330330
* @param string|string[] $optionNames One or more option names
331331
*
332-
* @return OptionsResolver This instance
332+
* @return $this
333333
*
334334
* @throws AccessException If called from a lazy option or normalizer
335335
*/
@@ -396,7 +396,7 @@ public function getDefinedOptions()
396396
* @param string $option The option name
397397
* @param \Closure $normalizer The normalizer
398398
*
399-
* @return OptionsResolver This instance
399+
* @return $this
400400
*
401401
* @throws UndefinedOptionsException If the option is undefined
402402
* @throws AccessException If called from a lazy option or normalizer
@@ -428,7 +428,7 @@ public function setNormalizer($option, \Closure $normalizer)
428428
*
429429
* @param array $normalizers An array of closures
430430
*
431-
* @return OptionsResolver This instance
431+
* @return $this
432432
*
433433
* @throws UndefinedOptionsException If the option is undefined
434434
* @throws AccessException If called from a lazy option or normalizer
@@ -463,7 +463,7 @@ public function setNormalizers(array $normalizers)
463463
* @param string $option The option name
464464
* @param mixed $allowedValues One or more acceptable values/closures
465465
*
466-
* @return OptionsResolver This instance
466+
* @return $this
467467
*
468468
* @throws UndefinedOptionsException If the option is undefined
469469
* @throws AccessException If called from a lazy option or normalizer
@@ -519,7 +519,7 @@ public function setAllowedValues($option, $allowedValues = null)
519519
* @param string $option The option name
520520
* @param mixed $allowedValues One or more acceptable values/closures
521521
*
522-
* @return OptionsResolver This instance
522+
* @return $this
523523
*
524524
* @throws UndefinedOptionsException If the option is undefined
525525
* @throws AccessException If called from a lazy option or normalizer
@@ -575,7 +575,7 @@ public function addAllowedValues($option, $allowedValues = null)
575575
* @param string $option The option name
576576
* @param string|string[] $allowedTypes One or more accepted types
577577
*
578-
* @return OptionsResolver This instance
578+
* @return $this
579579
*
580580
* @throws UndefinedOptionsException If the option is undefined
581581
* @throws AccessException If called from a lazy option or normalizer
@@ -625,7 +625,7 @@ public function setAllowedTypes($option, $allowedTypes = null)
625625
* @param string $option The option name
626626
* @param string|string[] $allowedTypes One or more accepted types
627627
*
628-
* @return OptionsResolver This instance
628+
* @return $this
629629
*
630630
* @throws UndefinedOptionsException If the option is undefined
631631
* @throws AccessException If called from a lazy option or normalizer
@@ -674,7 +674,7 @@ public function addAllowedTypes($option, $allowedTypes = null)
674674
*
675675
* @param string|string[] $optionNames One or more option names
676676
*
677-
* @return OptionsResolver This instance
677+
* @return $this
678678
*
679679
* @throws AccessException If called from a lazy option or normalizer
680680
*/
@@ -695,7 +695,7 @@ public function remove($optionNames)
695695
/**
696696
* Removes all options.
697697
*
698-
* @return OptionsResolver This instance
698+
* @return $this
699699
*
700700
* @throws AccessException If called from a lazy option or normalizer
701701
*/

OptionsResolverInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface OptionsResolverInterface
4343
* @param array $defaultValues A list of option names as keys and default
4444
* values or closures as values.
4545
*
46-
* @return OptionsResolverInterface The resolver instance
46+
* @return $this
4747
*/
4848
public function setDefaults(array $defaultValues);
4949

@@ -58,7 +58,7 @@ public function setDefaults(array $defaultValues);
5858
* @param array $defaultValues A list of option names as keys and default
5959
* values or closures as values.
6060
*
61-
* @return OptionsResolverInterface The resolver instance
61+
* @return $this
6262
*/
6363
public function replaceDefaults(array $defaultValues);
6464

@@ -73,7 +73,7 @@ public function replaceDefaults(array $defaultValues);
7373
*
7474
* @param array $optionNames A list of option names
7575
*
76-
* @return OptionsResolverInterface The resolver instance
76+
* @return $this
7777
*/
7878
public function setOptional(array $optionNames);
7979

@@ -85,7 +85,7 @@ public function setOptional(array $optionNames);
8585
*
8686
* @param array $optionNames A list of option names
8787
*
88-
* @return OptionsResolverInterface The resolver instance
88+
* @return $this
8989
*/
9090
public function setRequired($optionNames);
9191

@@ -96,7 +96,7 @@ public function setRequired($optionNames);
9696
* with values acceptable for that option as
9797
* values.
9898
*
99-
* @return OptionsResolverInterface The resolver instance
99+
* @return $this
100100
*
101101
* @throws InvalidOptionsException If an option has not been defined
102102
* (see {@link isKnown()}) for which
@@ -113,7 +113,7 @@ public function setAllowedValues($allowedValues);
113113
* with values acceptable for that option as
114114
* values.
115115
*
116-
* @return OptionsResolverInterface The resolver instance
116+
* @return $this
117117
*
118118
* @throws InvalidOptionsException If an option has not been defined
119119
* (see {@link isKnown()}) for which
@@ -127,7 +127,7 @@ public function addAllowedValues($allowedValues);
127127
* @param array $allowedTypes A list of option names as keys and type
128128
* names passed as string or array as values.
129129
*
130-
* @return OptionsResolverInterface The resolver instance
130+
* @return $this
131131
*
132132
* @throws InvalidOptionsException If an option has not been defined for
133133
* which an allowed type is set.
@@ -142,7 +142,7 @@ public function setAllowedTypes($allowedTypes);
142142
* @param array $allowedTypes A list of option names as keys and type
143143
* names passed as string or array as values.
144144
*
145-
* @return OptionsResolverInterface The resolver instance
145+
* @return $this
146146
*
147147
* @throws InvalidOptionsException If an option has not been defined for
148148
* which an allowed type is set.
@@ -165,7 +165,7 @@ public function addAllowedTypes($allowedTypes);
165165
*
166166
* @param array $normalizers An array of closures
167167
*
168-
* @return OptionsResolverInterface The resolver instance
168+
* @return $this
169169
*/
170170
public function setNormalizers(array $normalizers);
171171

0 commit comments

Comments
 (0)