Closed eithed closed 3 years ago
I'll happily merge a PR fixing this @eithed ! My gut feeling is that we might be overriding the command method that generates the foreign uuid properties
@mr-feek created a PR fixing this https://github.com/psalm/psalm-plugin-laravel/pull/150
Describe the bug
For a class with following migration:
following _ide_helper_models.php is generated:
and following models.stubphp is generated:
thus triggering
Magic instance property App\Models\BoundPolicyTransaction::$bound_policy_id is not defined
.As a workaround one can replace the migration syntax with:
which will correctly include the fields in models.stubphp
Impacted Versions