packagist psalm/plugin-laravel v2.6.0

latest releases: 1.x-dev, 1.4.x-dev, v1.4.10...
21 months ago

What’s Changed

⚠️ This is the latest minor version that supports Laravel 9.2-9.47

Features

  • Support throw_if and throw_unless (narrow down possible types based on these calls) (#312) @lptn
  • Support legacy FactoryBuilder (that uses factory(Model::class) syntax) (#303) @lptn
  • Improve return type detection for Laravel path helpers (#309) @lptn
  • Add More stubs: lang_path, Eloquent\Builder::chunk, Database\Connection::transaction (#305) @lptn
  • Add assertions to Collections (narrow down possible return types) (#313) @lptn

Fixes

  • Fix MorphMany return type when orderBy used (e.g. latest(), olders()) (#308) @lptn

Internal changes

  • 🚀 Optimize Model attribute existence check (#306) @lptn
  • Use errorLevel=1 for plugin codebase (#304) @lptn
  • Enable taint analysis in tests (#311) @lptn
  • Cleanup testing module, reorganize stubs (#310) @lptn

Full Changelog: v2.5.0...v2.6.0

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.