@@ -56,7 +56,7 @@ public function toDisplayString(): string
56
56
));
57
57
}
58
58
59
- public function getString (string $ name , string $ default = null , bool $ required = false ): ?string
59
+ public function getString (string $ name , ? string $ default = null , bool $ required = false ): ?string
60
60
{
61
61
$ value = $ this ->get ($ name , $ default , $ required );
62
62
@@ -71,7 +71,7 @@ public function getString(string $name, string $default = null, bool $required =
71
71
throw new \InvalidArgumentException (\sprintf ("Option '%s' must be a string " , $ name ));
72
72
}
73
73
74
- public function getBool (string $ name , bool $ default = null , bool $ required = false ): ?bool
74
+ public function getBool (string $ name , ? bool $ default = null , bool $ required = false ): ?bool
75
75
{
76
76
$ value = $ this ->get ($ name , $ default , $ required );
77
77
@@ -93,7 +93,7 @@ public function getBool(string $name, bool $default = null, bool $required = fal
93
93
return (bool ) $ value ;
94
94
}
95
95
96
- public function getInt (string $ name , int $ default = null , bool $ required = false ): ?int
96
+ public function getInt (string $ name , ? int $ default = null , bool $ required = false ): ?int
97
97
{
98
98
$ value = $ this ->get ($ name , $ default , $ required );
99
99
@@ -108,7 +108,7 @@ public function getInt(string $name, int $default = null, bool $required = false
108
108
throw new \InvalidArgumentException (\sprintf ("Option '%s' must be an int " , $ name ));
109
109
}
110
110
111
- public function getFloat (string $ name , float $ default = null , bool $ required = false ): ?float
111
+ public function getFloat (string $ name , ? float $ default = null , bool $ required = false ): ?float
112
112
{
113
113
$ value = $ this ->get ($ name , $ default , $ required );
114
114
@@ -124,7 +124,7 @@ public function getFloat(string $name, float $default = null, bool $required = f
124
124
125
125
}
126
126
127
- public function getDate (string $ name , \DateTimeImmutable $ default = null , bool $ required = false ): ?\DateTimeImmutable
127
+ public function getDate (string $ name , ? \DateTimeImmutable $ default = null , bool $ required = false ): ?\DateTimeImmutable
128
128
{
129
129
$ value = $ this ->get ($ name , $ default , $ required );
130
130
@@ -143,7 +143,7 @@ public function getDate(string $name, \DateTimeImmutable $default = null, bool $
143
143
}
144
144
}
145
145
146
- public function getInterval (string $ name , \DateInterval $ default = null , bool $ required = false ): ?\DateInterval
146
+ public function getInterval (string $ name , ? \DateInterval $ default = null , bool $ required = false ): ?\DateInterval
147
147
{
148
148
$ value = $ this ->get ($ name , $ default , $ required );
149
149
0 commit comments