@@ -490,7 +490,7 @@ public function isDeprecated(string $option): bool
490
490
* @throws UndefinedOptionsException If the option is undefined
491
491
* @throws AccessException If called from a lazy option or normalizer
492
492
*/
493
- public function setNormalizer (string $ option , \Closure $ normalizer )
493
+ public function setNormalizer (string $ option , \Closure $ normalizer ): static
494
494
{
495
495
if ($ this ->locked ) {
496
496
throw new AccessException ('Normalizers cannot be set from a lazy option or normalizer. ' );
@@ -574,7 +574,7 @@ public function addNormalizer(string $option, \Closure $normalizer, bool $forceP
574
574
* @throws UndefinedOptionsException If the option is undefined
575
575
* @throws AccessException If called from a lazy option or normalizer
576
576
*/
577
- public function setAllowedValues (string $ option , mixed $ allowedValues )
577
+ public function setAllowedValues (string $ option , mixed $ allowedValues ): static
578
578
{
579
579
if ($ this ->locked ) {
580
580
throw new AccessException ('Allowed values cannot be set from a lazy option or normalizer. ' );
@@ -614,7 +614,7 @@ public function setAllowedValues(string $option, mixed $allowedValues)
614
614
* @throws UndefinedOptionsException If the option is undefined
615
615
* @throws AccessException If called from a lazy option or normalizer
616
616
*/
617
- public function addAllowedValues (string $ option , mixed $ allowedValues )
617
+ public function addAllowedValues (string $ option , mixed $ allowedValues ): static
618
618
{
619
619
if ($ this ->locked ) {
620
620
throw new AccessException ('Allowed values cannot be added from a lazy option or normalizer. ' );
@@ -654,7 +654,7 @@ public function addAllowedValues(string $option, mixed $allowedValues)
654
654
* @throws UndefinedOptionsException If the option is undefined
655
655
* @throws AccessException If called from a lazy option or normalizer
656
656
*/
657
- public function setAllowedTypes (string $ option , string |array $ allowedTypes )
657
+ public function setAllowedTypes (string $ option , string |array $ allowedTypes ): static
658
658
{
659
659
if ($ this ->locked ) {
660
660
throw new AccessException ('Allowed types cannot be set from a lazy option or normalizer. ' );
@@ -688,7 +688,7 @@ public function setAllowedTypes(string $option, string|array $allowedTypes)
688
688
* @throws UndefinedOptionsException If the option is undefined
689
689
* @throws AccessException If called from a lazy option or normalizer
690
690
*/
691
- public function addAllowedTypes (string $ option , string |array $ allowedTypes )
691
+ public function addAllowedTypes (string $ option , string |array $ allowedTypes ): static
692
692
{
693
693
if ($ this ->locked ) {
694
694
throw new AccessException ('Allowed types cannot be added from a lazy option or normalizer. ' );
0 commit comments