What's Changed
Important
Migration caching is now enabled by default. This should not affect analysis results and should make subsequent runs faster. If you notice unexpected behavior, you can disable it:
parameters:
enableMigrationCache: falseAdded
- Add
HasParametersstub by @canvural in ef28a38 - Narrow
getCastsandgetTouchedRelationsreturn types by @dfinchenko in #2497 - Type
AbstractPaginator::getCollection()as an Eloquent collection for model values by @szepeviktor in #2528 - Add
createQuietly()toEloquentBuilder.stubby @Mr-Offline in #2523 - Narrow
getAppendsandgetMutatedAttributesreturn types by @dfinchenko in #2499 - Add mixin to the
Viewfacade by @canvural in 9baa740
Fixed
- Build on the latest PHPStan by @staabm in #2496
- Use FQCN in stub by @canvural in 846a314
- Allow closures in translation replacements by @lazerg in #2526
- Resolve
getCountForPaginationpassthru at call time by @lazerg in #2535 - Handle
nullableTimestampsTzin the schema aggregator by @lazerg in #2506 - Skip redundant initial rewind when scanning directories by @denkfabrik-li in #2539
- Sync
BuilderHelper::$passthruwith Eloquent Builder by @alexkart in #2533 - Apply Eloquent PHP attributes when resolving model metadata by @NikitaKirin in #2500
- Handle named scopes colliding with passthru methods by @canvural in c535450
- Preserve builder types for forwarded query methods by @canvural in 9c81945
- Compare generic model property types correctly by @canvural in 34f6cc1
- Support model helper analysis on older Laravel versions by @canvural in 8033d9f
- Suppress missing model initializers on older Laravel versions by @canvural in 577e0df
Performance
Internal
- Remove the
ext-jsonComposer dependency by @maks-oleksyuk in #2514 - Update model type inference documentation by @dantleech in #2527
- Bump GitHub Actions to their latest major versions by @maks-oleksyuk in #2515
- Refresh the Monica E2E baseline by @maks-oleksyuk in #2542
New Contributors
- @dfinchenko made their first contribution in #2497
- @maks-oleksyuk made their first contribution in #2514
- @dantleech made their first contribution in #2527
- @Mr-Offline made their first contribution in #2523
- @lazerg made their first contribution in #2526
- @denkfabrik-li made their first contribution in #2539
- @alexkart made their first contribution in #2533
- @NikitaKirin made their first contribution in #2500
Full Changelog: v3.10.0...v3.11.0