packagist psalm/plugin-laravel v3.16.3

latest releases: v4.19.3, v4.19.2, v4.19.1...
one month ago

A patch release fixing pipe object rejection in Pipeline.

Fixes

  • Accept object pipes (not just closures, callables, and strings) in Pipeline::through() and Pipeline::pipe(), matching Laravel's own Pipeline::carry(), which calls the pipe's method on any object (#1590) by @yuriy-sorokin
 $pipeline->through(new AuthenticateMiddleware());
-// InvalidArgument: Argument 1 of Pipeline::through expects array<Closure|callable|string>|Closure|callable|string, but AuthenticateMiddleware provided
+// accepted, returns Pipeline&static

Full Changelog: v3.16.2...v3.16.3

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.