Skip to content

Conversation

@rhysemmerson
Copy link
Contributor

@rhysemmerson rhysemmerson commented Jan 17, 2022

Fixes #352

Inertia has always supported passing Arrayable objects for props. The type hint added recently broke this feature. This PR adds Arrayable to the typehint. I've removed the type hint because older php versions don't support union types

@rhysemmerson rhysemmerson changed the title Fix 352 incorrect type hint Fix incorrect type hint in render method Jan 17, 2022
@claudiodekker
Copy link
Contributor

Thanks!

@claudiodekker claudiodekker merged commit 3ab0f1a into inertiajs:master Jan 17, 2022
SuryaWebfox added a commit to SuryaWebfox/inertia-laravel that referenced this pull request Mar 18, 2022
Remove incorrect type hint: inertiajs#353
@SuryaWebfox SuryaWebfox mentioned this pull request Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing Arrayable object as props no longer working

2 participants