What's Changed
Added
- Extend
view-stringcoverage 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
checkUnusedViewsby @G4Zz0L1 in #2519. Read more about it here. - Add
ResponseInterfacemixin to the HTTP clientResponsestub 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()andattributesToArray()calls by @canvural in 75ea2fd. Read more about it here. - Check view names passed to mailable
Contentconstructors 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-ofby @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
staticin thenewQuery()method family on non-final models by @yeapea in #2544 - Preserve model types and custom builders with
builder-ofby @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
$withand$withCountdefaults by @canvural in 99a3b0e. Read more about it here.
Internal
-
Add agent contributor guidelines by @canvural in 7eec466, a63e66c, d8987c5, dcfa93b
-
Fix where callback test compatibility with older PHPStan versions by @canvural in ab26fdf
New Contributors
- @laravel-o11y made their first contribution in #2522
- @yeapea made their first contribution in #2544
- @G4Zz0L1 made their first contribution in #2519
Full Changelog: v3.11.0...v3.12.0