packagist psalm/plugin-laravel v4.19.5

50 minutes ago

This patch release fixes a v4.19.4 regression: runtime macros called through a Laravel facade reported UndefinedMagicMethod in apps that set their own aliases list in config/app.php.

Fixes

  • Resolve facade macros and facade-aware type handlers when config/app.php defines its own aliases list instead of extending Facade::defaultAliases() (#2275)
 // config/app.php: 'aliases' => ['Vite' => \Illuminate\Support\Facades\Vite::class]
 // a service provider: Route::macro('localized', [LocalizedRouteMacro::class, 'localized']);
 Route::localized(static function (): void { /* ... */ });
-// UndefinedMagicMethod: Magic method Illuminate\Support\Facades\Route::localized does not exist
+// resolves to the registered macro

Full Changelog: v4.19.4...v4.19.5

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.