psalm-plugin-laravel icon indicating copy to clipboard operation
psalm-plugin-laravel copied to clipboard

A Psalm plugin for Laravel

Results 39 psalm-plugin-laravel issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** When investigating an issue that was ultimately reported on https://github.com/barryvdh/laravel-ide-helper/issues/1236 I've found that, within psalm plugin, `php artisan ide-helper:models` command...

enhancement

This fixes #184. I dont think you actually need to look at the config object because in Laravel 8.x documentation it's stated that: > By default, Laravel includes an App\Models\User...

**Is your feature request related to a problem? Please describe.** Psalm seems to be unable to infer the type of the following assignment: ```php $users = User::select('name', 'email'); ``` (The...

enhancement

I've got this model class: ```php /** * @property-read \App\Domain\Equipment\State\ArticleCategoryType\ArticleCategoryType $type * @property-read \App\Domain\Equipment\State\ArticleCategoryTarget\ArticleCategoryTarget $target */ class ArticleCategory extends Model ``` But whenever calling `->type` on a model instance, Psalm...

bug

**Is your feature request related to a problem? Please describe.** Query Scope classes can be created using `make:scope` as an alternative to creating "local" scopes inside the Model class directly....

enhancement

Currently, there is no stub for Laravel 8's EloquentBuilder "when" method and psalm showing error, when trying to call it with a second parameter. `TooManyArguments - Too many arguments for...

enhancement

**Describe the bug** ``` 1) factory(): can use factory helper in Laravel 6.x and 7.x Test tests/acceptance/FactoryTypes.feature:can use factory helper in Laravel 6.x and 7.x Step Have a dependency satisfied...

bug

Example: ``` ERROR: MixedArrayAssignment - app/Models/Acme.php:110:9 - Cannot access array value on mixed variable $this->attributes['user_id'] (see https://psalm.dev/117) $this->attributes['user_id'] = $user_id; ```

enhancement

I'm not sure why, but with certain versions of this plugins things stop working. Especially when it comes to model properties not being found. I would like to suggest a...

enhancement

**Describe the bug** When run ./vendor/bin/psalm i have this error **Impacted Versions** barryvdh/laravel-debugbar v3.6.2 barryvdh/laravel-ide-helper v2.9.1 fruitcake/laravel-cors v2.0.4 laravel/fortify v1.7.14 laravel/framework v8.50.0 laravel/sail v1.8.6 laravel/tinker v2.6.1 psalm/plugin-laravel v1.5.0 spatie/laravel-ray 1.23.0...

bug