packagist nunomaduro/larastan v3.12.0
3.12.0

3 hours ago

What's Changed

Added

  • Extend view-string coverage to more view-name signatures by @maks-oleksyuk in #2513. Read more about it here.
  • Add seven opt-in rules for queued jobs by @laravel-o11y in #2522. Read more about it here.
  • Detect anonymous Blade component views in checkUnusedViews by @G4Zz0L1 in #2519. Read more about it here.
  • Add ResponseInterface mixin to the HTTP client Response stub by @ramonrietdijk in #2428
  • Add builder-of<Model> custom PHPDoc type by @canvural in #2374. Read more about it here.
  • Infer array shapes for model toArray() and attributesToArray() calls by @canvural in 75ea2fd. Read more about it here.
  • Check view names passed to mailable Content constructors by @canvural in 43f9cae. Read more about it here.
  • Add an opt-in rule requiring explicit model query builder calls, with automatic fixes, by @canvural in 59fa341. Read more about it here.
  • Infer relationship query callback types and support relationship paths in builder-of by @canvural in 62342c8. Read more about it here.

Fixed

  • Refine queue rule checks and diagnostics by @canvural in 80838e1
  • Resolve typed migration table constants by @riasvdv in #2520
  • Preserve static in the newQuery() method family on non-final models by @yeapea in #2544
  • Preserve model types and custom builders with builder-of by @canvural in a23d0c9
  • Preserve custom paginator collection types and track key and value types through setCollection() by @canvural in f336303. Read more about it here.
  • Avoid crashes when models implement missing interfaces by @canvural in bce4756
  • Fix callback types for Eloquent where subqueries by @canvural in eb73731

Changed

  • Expand relation existence checking to more query and loading methods, Eloquent collections, and model $with and $withCount defaults by @canvural in 99a3b0e. Read more about it here.

Internal

New Contributors

Full Changelog: v3.11.0...v3.12.0

Don't miss a new larastan release

NewReleases is sending notifications on new releases.