Skip to content

Added phpstan

Added phpstan #1

Triggered via pull request July 23, 2024 07:54
Status Failure
Total duration 2m 0s
Artifacts

phpstan.yml

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

Annotations

10 errors and 2 warnings
php82-laravel-latest-phpstan-postgres: src/EscolaLmsVouchersServiceProvider.php#L23
Property EscolaLms\Vouchers\EscolaLmsVouchersServiceProvider::$singletons has no type specified.
php82-laravel-latest-phpstan-postgres: src/EscolaLmsVouchersServiceProvider.php#L43
Method EscolaLms\Vouchers\EscolaLmsVouchersServiceProvider::boot() has no return type specified.
php82-laravel-latest-phpstan-postgres: src/EscolaLmsVouchersServiceProvider.php#L56
Method EscolaLms\Vouchers\EscolaLmsVouchersServiceProvider::bootForConsole() has no return type specified.
php82-laravel-latest-phpstan-postgres: src/Http/Controllers/VouchersAdminApiController.php#L31
Static method Illuminate\Http\Resources\Json\JsonResource::collection() invoked with 2 parameters, 1 required.
php82-laravel-latest-phpstan-postgres: src/Http/Controllers/VouchersApiController.php#L26
Parameter #1 $user of method EscolaLms\Vouchers\Services\Contracts\ShopServiceContract::cartForUser() expects EscolaLms\Core\Models\User, Illuminate\Foundation\Auth\User|null given.
php82-laravel-latest-phpstan-postgres: src/Http/Controllers/VouchersApiController.php#L39
Parameter #1 $user of method EscolaLms\Vouchers\Services\Contracts\ShopServiceContract::cartForUser() expects EscolaLms\Core\Models\User, Illuminate\Foundation\Auth\User|null given.
php82-laravel-latest-phpstan-postgres: src/Http/Requests/ApplyCouponRequest.php#L16
Method EscolaLms\Vouchers\Http\Requests\ApplyCouponRequest::rules() return type has no value type specified in iterable type array.
php82-laravel-latest-phpstan-postgres: src/Http/Requests/CreateCouponRequest.php#L22
Method EscolaLms\Vouchers\Http\Requests\CreateCouponRequest::rules() return type has no value type specified in iterable type array.
php82-laravel-latest-phpstan-postgres: src/Http/Requests/CreateCouponRequest.php#L50
Method EscolaLms\Vouchers\Http\Requests\CreateCouponRequest::withValidator() has no return type specified.
php82-laravel-latest-phpstan-postgres: src/Http/Requests/DeleteCouponRequest.php#L16
Method EscolaLms\Vouchers\Http\Requests\DeleteCouponRequest::rules() return type has no value type specified in iterable type array.
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/