laravel-ide-helper
laravel-ide-helper copied to clipboard
Fix return value of query scopes from parent class
This PR fixes the return value of query scope methods that are defined in a parent class of the target model. At the moment the return value contains the class name where the method is located: @method static \Illuminate\Database\Eloquent\Builder|PostParent active()
, and with this change it correctly becomes @method static \Illuminate\Database\Eloquent\Builder|Post active()
. See included test for more context.
(I included a commit to update a snapshot that failed the test suite, unrelated to this change.)
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist
- [x] Existing tests have been adapted and/or new tests have been added
- [x] Add a CHANGELOG.md entry
- [ ] Update the README.md
- [x] Code style has been fixed via
composer fix-style