packagist psalm/plugin-laravel v4.22.3

59 minutes ago

Arrow function callbacks in migrations, on Psalm 7.10.

Requirements

  • Require vimeo/psalm ^7.10.0. Upgrade Psalm together with the plugin: composer u vimeo/psalm -W (#2355)

Fixes

  • Read migration columns declared in arrow function callbacks of Schema::create(), Schema::table() and Blueprint::after() (#2350)
    ```diff
    Schema::create('tags', fn (Blueprint $table) => $table->string('name'));

$name = Tag::first()->name;
-// UndefinedMagicPropertyFetch: the name column was never read
+// string
```

Full Changelog: https://github.com/psalm/psalm-plugin-laravel/compare/v4.22.2...v4.22.3

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.