@@ -35,7 +35,7 @@ public function __construct(array $data = [])
3535 *
3636 * @return int The value
3737 */
38- public function getInt (string $ key , int $ default = null ): int
38+ public function getInt (string $ key , ? int $ default = null ): int
3939 {
4040 $ value = $ this ->find ($ key , $ default );
4141
@@ -54,7 +54,7 @@ public function getInt(string $key, int $default = null): int
5454 *
5555 * @return int|null The value
5656 */
57- public function findInt (string $ key , int $ default = null )
57+ public function findInt (string $ key , ? int $ default = null )
5858 {
5959 $ value = $ this ->find ($ key , $ default );
6060
@@ -75,7 +75,7 @@ public function findInt(string $key, int $default = null)
7575 *
7676 * @return string The value
7777 */
78- public function getString (string $ key , string $ default = null ): string
78+ public function getString (string $ key , ? string $ default = null ): string
7979 {
8080 $ value = $ this ->find ($ key , $ default );
8181
@@ -94,7 +94,7 @@ public function getString(string $key, string $default = null): string
9494 *
9595 * @return string|null The value
9696 */
97- public function findString (string $ key , string $ default = null )
97+ public function findString (string $ key , ? string $ default = null )
9898 {
9999 $ value = $ this ->find ($ key , $ default );
100100
@@ -115,7 +115,7 @@ public function findString(string $key, string $default = null)
115115 *
116116 * @return array<mixed> The value
117117 */
118- public function getArray (string $ key , array $ default = null ): array
118+ public function getArray (string $ key , ? array $ default = null ): array
119119 {
120120 $ value = $ this ->find ($ key , $ default );
121121
@@ -134,7 +134,7 @@ public function getArray(string $key, array $default = null): array
134134 *
135135 * @return array<mixed>|null The value
136136 */
137- public function findArray (string $ key , array $ default = null )
137+ public function findArray (string $ key , ? array $ default = null )
138138 {
139139 $ value = $ this ->find ($ key , $ default );
140140
@@ -155,7 +155,7 @@ public function findArray(string $key, array $default = null)
155155 *
156156 * @return float The value
157157 */
158- public function getFloat (string $ key , float $ default = null ): float
158+ public function getFloat (string $ key , ? float $ default = null ): float
159159 {
160160 $ value = $ this ->find ($ key , $ default );
161161
@@ -174,7 +174,7 @@ public function getFloat(string $key, float $default = null): float
174174 *
175175 * @return float|null The value
176176 */
177- public function findFloat (string $ key , float $ default = null )
177+ public function findFloat (string $ key , ? float $ default = null )
178178 {
179179 $ value = $ this ->find ($ key , $ default );
180180
@@ -195,7 +195,7 @@ public function findFloat(string $key, float $default = null)
195195 *
196196 * @return bool The value
197197 */
198- public function getBool (string $ key , bool $ default = null ): bool
198+ public function getBool (string $ key , ? bool $ default = null ): bool
199199 {
200200 $ value = $ this ->find ($ key , $ default );
201201
@@ -214,7 +214,7 @@ public function getBool(string $key, bool $default = null): bool
214214 *
215215 * @return bool|null The value
216216 */
217- public function findBool (string $ key , bool $ default = null )
217+ public function findBool (string $ key , ? bool $ default = null )
218218 {
219219 $ value = $ this ->find ($ key , $ default );
220220
@@ -235,7 +235,7 @@ public function findBool(string $key, bool $default = null)
235235 *
236236 * @return Chronos The value
237237 */
238- public function getChronos (string $ key , Chronos $ default = null ): Chronos
238+ public function getChronos (string $ key , ? Chronos $ default = null ): Chronos
239239 {
240240 $ value = $ this ->find ($ key , $ default );
241241
@@ -254,11 +254,11 @@ public function getChronos(string $key, Chronos $default = null): Chronos
254254 * Get value as Chronos or null.
255255 *
256256 * @param string $key The key
257- * @param Chronos $default The default value
257+ * @param Chronos|null $default The default value
258258 *
259259 * @return Chronos|null The value
260260 */
261- public function findChronos (string $ key , Chronos $ default = null )
261+ public function findChronos (string $ key , ? Chronos $ default = null )
262262 {
263263 $ value = $ this ->find ($ key , $ default );
264264
0 commit comments