From ff413a6623485b606b79d47e22ef81a5654eaa9f Mon Sep 17 00:00:00 2001 From: "Mohammad Mahdi Gholamrezaei (Mr.MMG)" Date: Mon, 3 Mar 2025 01:10:36 +0330 Subject: [PATCH] FEAT: add array type for getOr, getOrSend method --- src/Nullable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nullable.php b/src/Nullable.php index 028df3c..8a48a38 100644 --- a/src/Nullable.php +++ b/src/Nullable.php @@ -32,7 +32,7 @@ public function __construct($value = null, array $message = [], $predicate = nul /** * Get the value of nullable object or the default in case of null. * - * @param string $default + * @param string|array $default * @return mixed|null */ public function getOr($default) @@ -72,7 +72,7 @@ public function getOrAbort($code, $message = '', array $headers = []) /** * check valid http response. * - * @param string $callable + * @param string|array $callable * @return mixed|null */ public function getOrSend($callable)