From eab88ebe0b3c056c1aad7343473ee6f83c5e5cef Mon Sep 17 00:00:00 2001 From: Raj Shekhar Dev Date: Thu, 3 Aug 2023 01:44:24 +0530 Subject: [PATCH] modified return type of clipboard image method --- src/Clipboard.php | 2 +- src/Facades/Clipboard.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Clipboard.php b/src/Clipboard.php index a91400ac..1f01c2cf 100644 --- a/src/Clipboard.php +++ b/src/Clipboard.php @@ -41,7 +41,7 @@ public function html($html = null): string return $html; } - public function image($image = null): string + public function image($image = null): string|null { if (is_null($image)) { return $this->client->get('clipboard/image')->json('image'); diff --git a/src/Facades/Clipboard.php b/src/Facades/Clipboard.php index 0de117b4..c10fd5d7 100644 --- a/src/Facades/Clipboard.php +++ b/src/Facades/Clipboard.php @@ -8,7 +8,7 @@ * @method static void clear() * @method static string text($text = null) * @method static string html($html = null) - * @method static string image($image = null) + * @method static string|null image($image = null) */ class Clipboard extends Facade {