packagist nunomaduro/larastan v3.12.3
3.12.3

latest releases: v3.15.0, v3.14.0, v3.13.2...
one month ago

What's Changed

Fixed

  • Preserve collection key types in Eloquent queries and paginators, with an optional key type in collection-of, by @canvural in 397c6df. Read more about it here.
  • Infer chunk() and each() callback types on BelongsToMany and through relations, including pivot types, by @canvural in 726e7a8
  • Check model properties in forceCreateQuietly() by @midhunmonachan in #2558
  • Check model properties in quiet and force relation create methods by @Cayan in #2560
  • Accept save() options such as touch instead of model properties by @Cayan in #2561
  • Resolve config keys using paths relative to their config directory and expand glob patterns in configDirectories by @canvural in f9b491b, fe7154b
  • Preserve the config value type when a default is passed to config() by @canvural in f2a79f7
  • Preserve $this in where() and global scope methods on Eloquent builders by @SanderMuller in #2567
  • Prevent index methods from overwriting or creating migration columns by @Cayan in #2566
  • Refine Laravel API types for events, query logs, migrations, mail, notifications, routing, and reflection by @canvural in 8fc1821
  • Resolve class constants used as migration column names by @Cayan in #2565
  • Accept numeric strings, integers, and floats when writing decimal casts by @matical in #2570
  • Infer named guard types from their configured driver by @antoinelame in #2571

Performance

  • Cache object types in helper extensions and builder names in BuilderHelper by @haratake22 in #2553
  • Load migrations only once when no tables are found by @ryanshepherd in #2569

New Contributors

Full Changelog: v3.12.2...v3.12.3

Don't miss a new larastan release

NewReleases is sending notifications on new releases.