Larastan v0.5.6 is released, here are the changes we`ve merged into this release:
nunomaduro/larastan
⚗️ Adds static analysis to Laravel improving developer productivity and code quality - nunomaduro/larastan
Added
- Eloquent relations are now also generic. (#518)
- Support for Composer 2. Thanks @GrahamCampbell (#528)
- Support for
abort_unless
,throw_if
andthrow_unless
functions. Thanks @Daanra (#542) - Support for
retry
helper return type. Thanks @Daanra (#543) - A rule for detecting expensive calls on a Collection. Thanks @Daanra You can read more about the details of the rule and how to configure it here. (#538)
- Support for
value
helper function return type. Thanks @Daanra (#545)
Fixed
- Fixed relation methods with custom builders always returning custom builder. (#520)
- Fixed reading
boolean
columns from migrations. (#514, #513, 692fcd1, d1f1861) - Annotations for model properties have higher order than migration files. (ec22906)
- Improved support for Eloquent relationships. (#533)
🚀 Larastan 0.5.6 is released!
— Can Vural (@can__vural) April 26, 2020
This release has improved support for relations, Composer 2 support, a brand new rule and many bugfixes!
Make sure to check the release notes for the details!https://t.co/HhOK7l3L8o#php #laravel #larastan #PHPStan
GitHub: https://github.com/nunomaduro/larastan/releases/tag/v0.5.6
Thanks, we hope you enjoy this new release! 🎉