Skip to content

Commit d33b6b2

Browse files
authored
Fix render method docblock on facade (#387)
The render method can take an array or an Arrayable
1 parent 89e4bd9 commit d33b6b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Inertia.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Inertia;
44

5+
use Illuminate\Contracts\Support\Arrayable;
56
use Illuminate\Support\Facades\Facade;
67

78
/**
@@ -12,7 +13,7 @@
1213
* @method static void version($version)
1314
* @method static int|string getVersion()
1415
* @method static LazyProp lazy(callable $callback)
15-
* @method static Response render($component, array $props = [])
16+
* @method static Response render($component, array|Arrayable $props = [])
1617
* @method static \Illuminate\Http\Response location(string $url)
1718
*
1819
* @see \Inertia\ResponseFactory

0 commit comments

Comments
 (0)