laravel-ide-helper
laravel-ide-helper copied to clipboard
Support nullableMorphTo
Summary
nullableMorphTo('related') in a migration generate nullable related_id and related_type columns. However ide-helper produce non-nullable @property-read
. This PR fix this issue.
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Misc. change (internal, infrastructure, maintenance, etc.)
Checklist
- [ ] Existing tests have been adapted and/or new tests have been added
- [ ] Add a CHANGELOG.md entry
- [ ] Update the README.md
- [ ] Code style has been fixed via
composer fix-style