Skip to content

fix: code analyse

fix: code analyse #116

Triggered via push December 7, 2024 18:51
Status Failure
Total duration 1m 0s
Artifacts

phpstan.yml

on: push
Matrix: phpstan
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 1 warning
PHPStan - P8.2: src/Enums/StatusEnum.php#L12
Class CSlant\Blog\Api\Enums\StatusEnum extends unknown class Botble\Base\Supports\Enum.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L35
Method CSlant\Blog\Api\Http\Controllers\PostController::index() has invalid return type Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L35
Method CSlant\Blog\Api\Http\Controllers\PostController::index() has invalid return type Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L37
Access to an undefined property CSlant\Blog\Api\Http\Controllers\PostController::$postRepository.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L48
Call to method setData() on an unknown class Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L50
Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListPostResource::collection().
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L27
Cannot call method first() on CSlant\Blog\Core\Models\Role|null.
PHPStan - P8.2: src/Http/Resources/ListPostResource.php#L13
Class CSlant\Blog\Api\Http\Resources\ListPostResource extends unknown class Botble\Blog\Http\Resources\ListPostResource.
PHPStan - P8.2: src/Http/Resources/ListPostResource.php#L20
Method CSlant\Blog\Api\Http\Resources\ListPostResource::toArray() has parameter $request with no type specified.
PHPStan - P8.2: src/Http/Resources/ListPostResource.php#L29
Call to static method url() on an unknown class Botble\Media\Facades\RvMedia.
PHPStan - P8.1
The job was canceled because "ubuntu-latest_8_2" failed.
PHPStan - P8.1: src/Enums/StatusEnum.php#L12
Class CSlant\Blog\Api\Enums\StatusEnum extends unknown class Botble\Base\Supports\Enum.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L35
Method CSlant\Blog\Api\Http\Controllers\PostController::index() has invalid return type Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L35
Method CSlant\Blog\Api\Http\Controllers\PostController::index() has invalid return type Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L37
Access to an undefined property CSlant\Blog\Api\Http\Controllers\PostController::$postRepository.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L48
Call to method setData() on an unknown class Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L50
Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListPostResource::collection().
PHPStan - P8.1: src/Http/Resources/AuthorResource.php#L27
Cannot call method first() on CSlant\Blog\Core\Models\Role|null.
PHPStan - P8.1: src/Http/Resources/ListPostResource.php#L13
Class CSlant\Blog\Api\Http\Resources\ListPostResource extends unknown class Botble\Blog\Http\Resources\ListPostResource.
PHPStan - P8.1: src/Http/Resources/ListPostResource.php#L20
Method CSlant\Blog\Api\Http\Resources\ListPostResource::toArray() has parameter $request with no type specified.
PHPStan - P8.1: src/Http/Resources/ListPostResource.php#L29
Call to static method url() on an unknown class Botble\Media\Facades\RvMedia.
PHPStan - P8.3
The job was canceled because "ubuntu-latest_8_2" failed.
PHPStan - P8.3
A task was canceled.
PHPStan - P8.2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636