packagist psalm/plugin-laravel v4.22.5

one hour ago

Requires vimeo/psalm ^7.12.0, and a nullable Request::route().

Fixes

  • Type Request::route() without arguments as Route|null: Laravel returns null when no route matched (error pages, console, queued code). Guards on it no longer report redundant checks, and an unguarded call reports PossiblyNullReference (#2367)
 $name = request()->route()?->getName();
-// RedundantConditionGivenDocblockType: Docblock-defined type Illuminate\Routing\Route for $__tmp_nullsafe__N is never null
+// string|null
  • Blade: stop reporting PossiblyUndefinedGlobalVariable on $__sessionPrevious/$__contextPrevious in templates with consecutive @session or @context blocks on Psalm 7.12 (#2369)

Full Changelog: v4.22.4...v4.22.5

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.