Skip to content

Commit 7dd70d2

Browse files
authored
Add Arrayable docblock for static analysis
`$instance->render($component, $props);` can deal with arrays and arrayable objects, though the docblock on the `inertia` helper function only specifies `array` as a possible type. This causes static analysis tools to complain when you pass in an arrayable.
1 parent 39a073e commit 7dd70d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Inertia helper.
66
*
77
* @param null|string $component
8-
* @param array $props
8+
* @param array|\Illuminate\Contracts\Support\Arrayable $props
99
*
1010
* @return \Inertia\ResponseFactory|\Inertia\Response
1111
*/

0 commit comments

Comments
 (0)