Skip to content

feat: Add new Base class for Inertia #22

feat: Add new Base class for Inertia

feat: Add new Base class for Inertia #22

Triggered via push June 22, 2024 17:26
Status Failure
Total duration 28s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Bases/BaseController.php#L12
Class RapidKit\LaravelRestify\Bases\BaseController extends unknown class App\Http\Controllers\Controller.
phpstan: src/Bases/BaseController.php#L29
Generic type Illuminate\Pagination\LengthAwarePaginator<(int|string), RapidKit\LaravelRestify\Bases\BaseData> in PHPDoc tag @return specifies 2 template types, but class Illuminate\Pagination\LengthAwarePaginator supports only 1: TValue
phpstan: src/Bases/BaseController.php#L31
Method RapidKit\LaravelRestify\Bases\BaseController::index() should return Illuminate\Pagination\LengthAwarePaginator<(int|string), RapidKit\LaravelRestify\Bases\BaseData>|Illuminate\Pagination\Paginator but returns Illuminate\Pagination\LengthAwarePaginator<Illuminate\Database\Eloquent\Model>.
phpstan: src/Bases/BaseController.php#L46
Method RapidKit\LaravelRestify\Bases\BaseController::store() should return RapidKit\LaravelRestify\Bases\BaseModel but returns Illuminate\Database\Eloquent\Model.
phpstan: src/Bases/BaseController.php#L54
Method RapidKit\LaravelRestify\Bases\BaseController::show() should return RapidKit\LaravelRestify\Bases\BaseModel but returns Illuminate\Database\Eloquent\Model.
phpstan: src/Bases/BaseService.php#L68
PHPDoc tag @throws with type RapidKit\LaravelRestify\Bases\ContainerExceptionInterface|RapidKit\LaravelRestify\Bases\NotFoundExceptionInterface is not subtype of Throwable
phpstan: src/Bases/BaseService.php#L87
PHPDoc tag @throws with type RapidKit\LaravelRestify\Bases\ContainerExceptionInterface|RapidKit\LaravelRestify\Bases\NotFoundExceptionInterface is not subtype of Throwable
phpstan: src/Bases/BaseService.php#L105
PHPDoc tag @throws with type RapidKit\LaravelRestify\Bases\BindingResolutionException is not subtype of Throwable
phpstan: src/Bases/Inertia/BaseController.php#L13
Class RapidKit\LaravelRestify\Bases\Inertia\BaseController extends unknown class App\Http\Controllers\Controller.
phpstan: src/Bases/Inertia/BaseController.php#L27
Method RapidKit\LaravelRestify\Bases\Inertia\BaseController::index() has invalid return type Inertia\Response.