Skip to content

Commit 3bba849

Browse files
committed
fix typing of nullable parameters
1 parent 0e4aec3 commit 3bba849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
class Status
3434
{
35-
public static function status(int $code, string $details, array $metadata = null): array
35+
public static function status(int $code, string $details, ?array $metadata = null): array
3636
{
3737
$status = [
3838
'code' => $code,
@@ -44,7 +44,7 @@ public static function status(int $code, string $details, array $metadata = null
4444
return $status;
4545
}
4646

47-
public static function ok(array $metadata = null): array
47+
public static function ok(?array $metadata = null): array
4848
{
4949
return Status::status(STATUS_OK, 'OK', $metadata);
5050
}

0 commit comments

Comments
 (0)