psalm-plugin-laravel
psalm-plugin-laravel copied to clipboard
A Psalm plugin for Laravel
**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...
**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...
**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...
**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 =...
**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`,...
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,...
**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...
**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...