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.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...

enhancement

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Would be nice to...

enhancement

It’s in beta now: https://github.com/vimeo/psalm/releases/tag/5.0.0-beta1

bug

**Describe the bug** psalm returns `InvalidReturnType` on: ``` public function notifications(): MorphMany { return $this->morphMany(Notification::class, 'notifiable') ->latest(); } ``` the full error is: ``` ERROR: InvalidReturnType - Modules/Admin/Auth/Models/Admin.php:126:38 - The...

bug

**Describe the bug** InvalidTemplateParam error is returned when using Eloquent Collection methods (I've tried `find` and `unique`). **Impacted Versions** Latest; psalm/plugin-laravel v2.0.1 **Additional context** `Route::get('test', function () { $collection =...

bug
help wanted

**Is your feature request related to a problem? Please describe.** According to PHPDoc: * `Illuminate\Support\Facades\Auth::user()` returns `\Illuminate\Contracts\Auth\Authenticatable|null` * `Illuminate\Http\Request::user()` returns `mixed` However, if `providers.users.driver` is set to `eloquent` in `config/auth.php`,...

enhancement

This PR should tighten the return types of the `config` helper to be the actual resolved type at runtime, rather than `Repository|mixed`. This should result in proper types being returned,...

release:feature
release:minor

**Describe the bug** So I've noticed when using helper methods such as ```php return response()->json([ 'data' => 'hello world' ]); ``` within a method that _should_ have an invalid return...

bug

**Describe the bug** I have an issue similar to @vladyslavstartsev’s #90. On the project I currently want to refactor this plugin fails with endless memory consumption on one file every...

bug