-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Is your feature request related to a problem? Please describe.
The plugin only considers migrations in the database/migrations
directory. If migrations are spread out in several directories, e.g. when using Laravel Modules, some Model stubs are generated without @property
definitions. This results in many false positive UndefinedMagicPropertyAssignment
errors.
Describe the solution you'd like
First, a warning message would be nice when a table can't be found (here).
Second, a way to specify multiple directories for migrations would be nice. I'm not sure what would be the best way to do this.
Describe alternatives you've considered
Temporarily moving all migrations into database/migrations
before running Psalm fixes the issue, but it is rather inconvenient.
Additional context
Our directory structure looks like this:
database/
migrations/
modules/
MobuleA/
database/
migrations/
MobuleB/
database/
migrations/