packagist psalm/plugin-laravel v3.14.1

4 hours ago

Patch release for the 3.x (Psalm 6) line. Fixes the init command emitting Psalm 7-only configuration, plus Laravel 11 analysis correctness plus other enhancements and fixes from 4.x branch:

Features

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

Fixes

  • Scope the Artisan::command() $this override to the callback closure so it no longer leaks to surrounding scope (#1127)
  • 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: v3.14.0...v3.14.1

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.