Skip to content

Commit a4fdd07

Browse files
authored
Improve inertia helper docblock
Improved the docblock for the inertia function, which will now be better processed by tools such as PHPStan. A similar structure is used, for example, in the response function in Laravel’s core framework.
1 parent 1e9721d commit a4fdd07

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
@@ -6,7 +6,7 @@
66
*
77
* @param null|string $component
88
* @param array|\Illuminate\Contracts\Support\Arrayable $props
9-
* @return \Inertia\ResponseFactory|\Inertia\Response
9+
* @return ($component is null ? \Inertia\ResponseFactory : \Inertia\Response)
1010
*/
1111
function inertia($component = null, $props = [])
1212
{

0 commit comments

Comments
 (0)