You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which PHPStan then mistook. I have many translatable fields so asking PHPStan to ignore each 1 of them doesn't seem practical too. So wonder if there are any suggestions on how to handle this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I run PHPStan on a codebase that uses laravel-translatable, i always get issues like these. How do I fix them?
Example line of code
PHPStan Issues
In HasTranslations.php trait, I see that translatable fields are given a cast of array
Which PHPStan then mistook. I have many translatable fields so asking PHPStan to ignore each 1 of them doesn't seem practical too. So wonder if there are any suggestions on how to handle this.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions