-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ModelsCommand->checkForCastableCasts does not support AsArrayObject #1305
Comments
@binotaliu is this related to #1287 ? 🤔 |
Did a little bit more looking into how the return type is detected, it seems logical that the command is failing since the get function in the AsArrayObject class has no doc block and no return type. A possible fix could be setting a default Here's the full class for reference:
|
@mfn yes. return type should be |
Same problem:
Cast:
|
Bug fix 🤞🏼 has just been released as https://github.com/barryvdh/laravel-ide-helper/releases/tag/v2.12.1 |
Wow, came here looking for this. Fixed 28 minutes ago 😂 Thanks all! |
Thanks for the quick fix! 🙏 |
Versions:
Description and steps to reproduce:
When setting the cast of a JSON object to
\Illuminate\Database\Eloquent\Casts\AsArrayObject
, ide-helper:models fails to get the return type of that cast. At line 1293 of the ModelsCommand class both methods returnnull
, even though the AsArrayObject class contains the following@return
tag in the docblock.The error:
The text was updated successfully, but these errors were encountered: