8000 Merge pull request #111 from blankRSD/return-type · alnutile/nativephp_laravel@02d8b71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02d8b71

Browse files
authored
Merge pull request NativePHP#111 from blankRSD/return-type
Modified return type of clipboard image method
2 parents f3d8e3d + eab88eb commit 02d8b71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Clipboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function html($html = null): string
4141
return $html;
4242
}
4343

44-
public function image($image = null): string
44+
public function image($image = null): string|null
4545
{
4646
if (is_null($image)) {
4747
return $this->client->get('clipboard/image')->json('image');

src/Facades/Clipboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @method static void clear()
99
* @method static string text($text = null)
1010
* @method static string html($html = null)
11-
* @method static string image($image = null)
11+
* @method static string|null image($image = null)
1212
*/
1313
class Clipboard extends Facade
1414
{

0 commit comments

Comments
 (0)
0