Skip to content

fix: update category model #115

fix: update category model

fix: update category model #115

Triggered via push December 7, 2024 17:10
Status Failure
Total duration 35s
Artifacts

phpstan.yml

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

Annotations

32 errors and 1 warning
PHPStan - P8.3: src/Enums/StatusEnum.php#L12
Class CSlant\Blog\Api\Enums\StatusEnum extends unknown class Botble\Base\Supports\Enum.
PHPStan - P8.3: src/Http/Controllers/PostController.php#L20
Method CSlant\Blog\Api\Http\Controllers\PostController::index() has invalid return type Botble\Base\Http\Responses\BaseHttpResponse.
PHPStan - P8.3: src/Http/Controllers/PostController.php#L22
Access to an undefined property CSlant\Blog\Api\Http\Controllers\PostController::$postRepository.
PHPStan - P8.3: src/Http/Controllers/PostController.php#L32
Call to an undefined method CSlant\Blog\Api\Http\Controllers\PostController::httpResponse().
PHPStan - P8.3: src/Http/Controllers/PostController.php#L34
Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListPostResource::collection().
PHPStan - P8.3: src/Http/Resources/AuthorResource.php#L15
Method CSlant\Blog\Api\Http\Resources\AuthorResource::toArray() return type has no value type specified in iterable type array.
PHPStan - P8.3: src/Http/Resources/AuthorResource.php#L20
Access to an undefined property CSlant\Blog\Core\Models\User::$id.
PHPStan - P8.3: src/Http/Resources/AuthorResource.php#L21
Access to an undefined property CSlant\Blog\Core\Models\User::$first_name.
PHPStan - P8.3: src/Http/Resources/AuthorResource.php#L22
Access to an undefined property CSlant\Blog\Core\Models\User::$last_name.
PHPStan - P8.3: src/Http/Resources/AuthorResource.php#L23
Access to an undefined property CSlant\Blog\Core\Models\User::$avatar_url.
PHPStan - P8.2
The job was canceled because "ubuntu-latest_8_3" failed.
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#L20
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#L22
Access to an undefined property CSlant\Blog\Api\Http\Controllers\PostController::$postRepository.
PHPStan - P8.2: src/Http/Controllers/PostController.php#L32
Call to an undefined method CSlant\Blog\Api\Http\Controllers\PostController::httpResponse().
PHPStan - P8.2: src/Http/Controllers/PostController.php#L34
Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListPostResource::collection().
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L15
Method CSlant\Blog\Api\Http\Resources\AuthorResource::toArray() return type has no value type specified in iterable type array.
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L20
Access to an undefined property CSlant\Blog\Core\Models\User::$id.
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L21
Access to an undefined property CSlant\Blog\Core\Models\User::$first_name.
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L22
Access to an undefined property CSlant\Blog\Core\Models\User::$last_name.
PHPStan - P8.2: src/Http/Resources/AuthorResource.php#L23
Access to an undefined property CSlant\Blog\Core\Models\User::$avatar_url.
PHPStan - P8.1
The job was canceled because "ubuntu-latest_8_3" 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#L20
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#L22
Access to an undefined property CSlant\Blog\Api\Http\Controllers\PostController::$postRepository.
PHPStan - P8.1: src/Http/Controllers/PostController.php#L32
Call to an undefined method CSlant\Blog\Api\Http\Controllers\PostController::httpResponse().
PHPStan - P8.1: src/Http/Controllers/PostController.php#L34
Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListPostResource::collection().
PHPStan - P8.1: src/Http/Resources/AuthorResource.php#L15
Method CSlant\Blog\Api\Http\Resources\AuthorResource::toArray() return type has no value type specified in iterable type array.
PHPStan - P8.1: src/Http/Resources/AuthorResource.php#L24
Cannot call method first() on array.
PHPStan - P8.1: src/Http/Resources/AuthorResource.php#L24
Using nullsafe method call on non-nullable type array. Use -> instead.
PHPStan - P8.1: src/Http/Resources/CategoryResource.php#L18
Method CSlant\Blog\Api\Http\Resources\CategoryResource::toArray() return type has no value type specified in iterable type array.
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.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636