Skip to content

Added phpstan

Added phpstan #2

Triggered via pull request July 18, 2024 08:00
Status Failure
Total duration 1m 24s
Artifacts

phpstan.yml

on: pull_request
php82-laravel-latest-phpstan-postgres
1m 13s
php82-laravel-latest-phpstan-postgres
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
php82-laravel-latest-phpstan-postgres: src/Dtos/CategoryDto.php#L21
Method EscolaLms\Categories\Dtos\CategoryDto::model() should return EscolaLms\Categories\Models\Category but returns Illuminate\Database\Eloquent\Builder<EscolaLms\Categories\Models\Category>|Illuminate\Database\Eloquent\Model.
php82-laravel-latest-phpstan-postgres: src/Dtos/CategorySortDto.php#L30
Unsafe usage of new static().
php82-laravel-latest-phpstan-postgres: src/EscolaLmsCategoriesServiceProvider.php#L32
Class Spatie\Permission\Middlewares\RoleMiddleware not found.
php82-laravel-latest-phpstan-postgres: src/Models/Category.php#L90
Class EscolaLms\Courses\Models\Course not found.
php82-laravel-latest-phpstan-postgres: src/Repositories/CategoriesRepository.php#L100
Method EscolaLms\Categories\Repositories\CategoriesRepository::get() should return EscolaLms\Categories\Models\Category but returns Illuminate\Database\Eloquent\Model.
php82-laravel-latest-phpstan-postgres: src/Repositories/CategoriesRepository.php#L125
Access to constant PUBLISHED on an unknown class EscolaLms\Courses\Enum\CourseStatusEnum.
php82-laravel-latest-phpstan-postgres: src/Repositories/Contracts/CategoriesRepositoryContract.php#L15
Deprecated in PHP 8.0: Required parameter $isActive follows optional parameter $perPage.
php82-laravel-latest-phpstan-postgres: src/Services/CategoryService.php#L57
Call to static method getColumnTable() on an unknown class EscolaLms\Categories\Services\Controller.
php82-laravel-latest-phpstan-postgres: src/Services/CategoryService.php#L62
Method EscolaLms\Categories\Services\CategoryService::store() should return EscolaLms\Categories\Models\Category but returns Illuminate\Database\Eloquent\Model.
php82-laravel-latest-phpstan-postgres: src/Services/CategoryService.php#L64
Access to an undefined property Illuminate\Database\Eloquent\Model::$name.
php82-laravel-latest-phpstan-postgres
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
php82-laravel-latest-phpstan-postgres
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/