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 {