Skip to content

[11.x] Fixes wrong @mixin on SoftDeletes trait#54140

Merged
taylorotwell merged 1 commit into
11.xfrom
fix/phpstan-with-model-with-soft-deletes
Jan 9, 2025
Merged

[11.x] Fixes wrong @mixin on SoftDeletes trait#54140
taylorotwell merged 1 commit into
11.xfrom
fix/phpstan-with-model-with-soft-deletes

Conversation

@nunomaduro

Copy link
Copy Markdown
Member

Seems that PHPStan / Larastan are unable to pick any model's casts if this @mixin annotation is present. Unsure about the reason, so as quick fix we may remove it.

@taylorotwell
taylorotwell merged commit 1c4937f into 11.x Jan 9, 2025
@taylorotwell
taylorotwell deleted the fix/phpstan-with-model-with-soft-deletes branch January 9, 2025 19:52
@bram-pkg

bram-pkg commented Jan 11, 2025

Copy link
Copy Markdown
Contributor

Perhaps a @phpstan-require-extends will help here? On the trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants