Skip to content

Commit

Permalink
Merge pull request #111 from blankRSD/return-type
Browse files Browse the repository at this point in the history
Modified return type of clipboard image method
  • Loading branch information
mpociot committed Aug 3, 2023
2 parents f3d8e3d + eab88eb commit 02d8b71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 02d8b71

Please sign in to comment.