packagist psalm/plugin-laravel v4.14.1

latest release: v3.14.1
6 hours ago

Patch release focused on Eloquent and query builder type accuracy, plus follow-up fixes to console closures and facade method resolution.

Features

  • Type $this in Artisan::command() closures so command callbacks resolve $this to the command instance (#1122 #1127)

Fixes

  • Fix false UndefinedMethod on app('encrypter') method calls (#1128)
  • Fix false UndefinedMethod on guard methods reached via auth() narrowing (#1121)
  • Type the no-arg higher-order tap() form as HigherOrderTapProxy<T> (#1112)
  • Accept uppercase orderBy() direction ('ASC'/'DESC') on Laravel <13.8 (#1111)
  • Type Query\Builder::orderBy() direction as asc/desc literals plus SortDirection (#1104)
  • Accept an Expression as the $sql argument to Query\Builder::whereRaw() (#1106)
  • Type Filesystem::hash() return as non-empty-string|false (#1109)
  • Accept a single string column on paginators and find() (#1105)
  • Type firstOrNew/updateOrCreate closure values on Laravel 13.5+ (#1102)
  • Type Connection::cursor() rows as stdClass instead of mixed (#1100)
  • Honor case-insensitive validation taint reads (#1099)

Full Changelog: v4.14.0...v4.14.1

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.