packagist psalm/plugin-laravel v4.3.0

6 hours ago

What's Changed

This release focuses on migration schema analysis for better Eloquent attribute type inference.

Migration Schema Analysis

  • Support broader Schema call patterns (connection chaining, class constants, custom facades) (#526)
  • Resolve foreignIdFor() column type from referenced model's primary key (#523)
  • Handle Blueprint::datetimes() and fix ulid() default column name (#531)
  • Default to mixed type for unknown Blueprint methods (custom DB types added by macros) (#528)
  • Sort migration files by basename to match Laravel's migrator ordering (#519)
  • Cache parsed migration schema to disk to speed up repeated runs (#524)

Stubs & Type Fixes

  • Fix Collection::map() return type, add Builder::select() and ResponseTrait::cookie() stubs (#548)

Security (Taint Analysis)

  • Add @psalm-taint-escape sql for Connection::escape() (#547)
  • Add taint stubs for UploadedFile and encrypt/decrypt helpers (#546)

Full Changelog: v4.2.0...v4.3.0

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.