Skip to content

Commit 1eb66e8

Browse files
Add back @return $this annotations
1 parent d62efa4 commit 1eb66e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

OptionConfigurator.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function __construct(string $name, OptionsResolver $resolver)
2828
/**
2929
* Adds allowed types for this option.
3030
*
31+
* @return $this
32+
*
3133
* @throws AccessException If called from a lazy option or normalizer
3234
*/
3335
public function allowedTypes(string ...$types): static
@@ -42,6 +44,8 @@ public function allowedTypes(string ...$types): static
4244
*
4345
* @param mixed ...$values One or more acceptable values/closures
4446
*
47+
* @return $this
48+
*
4549
* @throws AccessException If called from a lazy option or normalizer
4650
*/
4751
public function allowedValues(mixed ...$values): static
@@ -54,6 +58,8 @@ public function allowedValues(mixed ...$values): static
5458
/**
5559
* Sets the default value for this option.
5660
*
61+
* @return $this
62+
*
5763
* @throws AccessException If called from a lazy option or normalizer
5864
*/
5965
public function default(mixed $value): static
@@ -77,6 +83,8 @@ public function define(string $option): self
7783
* @param string $package The name of the composer package that is triggering the deprecation
7884
* @param string $version The version of the package that introduced the deprecation
7985
* @param string|\Closure $message The deprecation message to use
86+
*
87+
* @return $this
8088
*/
8189
public function deprecated(string $package, string $version, string|\Closure $message = 'The option "%name%" is deprecated.'): static
8290
{
@@ -88,6 +96,8 @@ public function deprecated(string $package, string $version, string|\Closure $me
8896
/**
8997
* Sets the normalizer for this option.
9098
*
99+
* @return $this
100+
*
91101
* @throws AccessException If called from a lazy option or normalizer
92102
*/
93103
public function normalize(\Closure $normalizer): static
@@ -100,6 +110,8 @@ public function normalize(\Closure $normalizer): static
100110
/**
101111
* Marks this option as required.
102112
*
113+
* @return $this
114+
*
103115
* @throws AccessException If called from a lazy option or normalizer
104116
*/
105117
public function required(): static
@@ -112,6 +124,8 @@ public function required(): static
112124
/**
113125
* Sets an info message for an option.
114126
*
127+
* @return $this
128+
*
115129
* @throws AccessException If called from a lazy option or normalizer
116130
*/
117131
public function info(string $info): static

0 commit comments

Comments
 (0)