laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Support nullableMorphTo

Open pyrou opened this issue 2 years ago • 0 comments

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

pyrou avatar Mar 24 '22 15:03 pyrou