Skip to content

chore(laravel): fix phpstan errors in policy test - #8870

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix-laravel-policy-phpstan
Nov 24, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix-laravel-policy-phpstan

Conversation

@soyuka

@soyuka soyuka commented Nov 24, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets n/a
License MIT
Doc PR n/a

PolicyBeforeDeserializationTest (206b1fc) turns the Laravel PHPStan run red: factory create() returns Collection|Model. Use createOne() and refresh() instead.

@soyuka
soyuka merged commit 54251a5 into api-platform:5.0 Nov 24, 2026
46 of 117 checks passed
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.

1 participant