Closed rakeshappycodes closed 1 year ago
➜ x-x git:(main) ./vendor/bin/phpstan analyse Note: Using configuration file /home/xxx/Desktop/xxx/xxx-x/phpstan.neon. 54/54 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% ------ ------------------------------------------------------------------- Line Http/Livewire/LeadsDatatables.php ------ ------------------------------------------------------------------- 21 Method App\Http\Livewire\LeadsDatatables::columns() has invalid return type App\Http\Livewire\response. 23 Method App\Http\Livewire\LeadsDatatables::columns() should return App\Http\Livewire\response but returns array<int, mixed>. ------ -------------------------------------------------------------------
"require": { "php": "^8.0.2", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^9.19", "laravel/sanctum": "^3.0", "laravel/tinker": "^2.7", "livewire/livewire": "^2.10", "maatwebsite/excel": "^3.1", "mediconesystems/livewire-datatables": "^0.9.5", "psr/simple-cache": "^1.0" }, "require-dev": { "fakerphp/faker": "^1.9.1", "laravel/breeze": "^1.13", "laravel/pint": "^1.0", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "nunomaduro/larastan": "^2.0", "phpunit/phpunit": "^9.5.10", "romanzipp/laravel-model-doc": "^1.2", "spatie/laravel-ignition": "^1.0" },
@return response() is not a correct return type. Try @return array<int, mixed>
@return response()
@return array<int, mixed>
Thanks