Added phpstan #2
phpstan.yml
on: pull_request
php82-laravel-latest-phpstan-postgres
1m 21s
Annotations
10 errors and 2 warnings
php82-laravel-latest-phpstan-postgres:
src/Models/CartItem.php#L58
Return type (int) of method EscolaLms\Vouchers\Models\CartItem::getSubtotalAttribute() should be compatible with return type (float) of method EscolaLms\Cart\Models\CartItem::getSubtotalAttribute()
|
php82-laravel-latest-phpstan-postgres:
src/Models/CartItem.php#L60
Method EscolaLms\Vouchers\Models\CartItem::getSubtotalAttribute() should return int but returns float.
|
php82-laravel-latest-phpstan-postgres:
src/Models/CouponCategory.php#L35
Property EscolaLms\Vouchers\Models\CouponCategory::$guarded type has no value type specified in iterable type array.
|
php82-laravel-latest-phpstan-postgres:
src/Models/CouponCategory.php#L43
Method EscolaLms\Vouchers\Models\CouponCategory::coupon() return type with generic class Illuminate\Database\Eloquent\Relations\BelongsTo does not specify its types: TRelatedModel, TChildModel
|
php82-laravel-latest-phpstan-postgres:
src/Models/CouponCategory.php#L48
Method EscolaLms\Vouchers\Models\CouponCategory::category() return type with generic class Illuminate\Database\Eloquent\Relations\BelongsTo does not specify its types: TRelatedModel, TChildModel
|
php82-laravel-latest-phpstan-postgres:
src/Services/CouponService.php#L252
Return type (Illuminate\Support\Collection<int, Treestoneit\ShoppingCart\Models\CartItem>) of method EscolaLms\Vouchers\Services\CouponService::cartItemsIncludedInCoupon() should be compatible with return type (Illuminate\Support\Collection<int, EscolaLms\Vouchers\Models\CartItem>) of method EscolaLms\Vouchers\Services\Contracts\CouponServiceContract::cartItemsIncludedInCoupon()
|
php82-laravel-latest-phpstan-postgres:
src/Services/CouponService.php#L254
Method EscolaLms\Vouchers\Services\CouponService::cartItemsIncludedInCoupon() should return Illuminate\Support\Collection<int, Treestoneit\ShoppingCart\Models\CartItem> but returns iterable<EscolaLms\Vouchers\Models\CartItem>&Treestoneit\ShoppingCart\Models\CartItemCollection.
|
php82-laravel-latest-phpstan-postgres:
src/Services/CouponService.php#L254
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),Illuminate\Database\Eloquent\Model>::filter() expects (callable(Illuminate\Database\Eloquent\Model, int|string): bool)|null, Closure(Treestoneit\ShoppingCart\Models\CartItem): bool given.
|
php82-laravel-latest-phpstan-postgres:
src/Services/CouponService.php#L282
Return type (Illuminate\Support\Collection<int, Treestoneit\ShoppingCart\Models\CartItem>) of method EscolaLms\Vouchers\Services\CouponService::cartItemsWithoutExcludedFromCoupon() should be compatible with return type (Illuminate\Support\Collection<int, EscolaLms\Vouchers\Models\CartItem>) of method EscolaLms\Vouchers\Services\Contracts\CouponServiceContract::cartItemsWithoutExcludedFromCoupon()
|
php82-laravel-latest-phpstan-postgres:
src/Services/CouponService.php#L284
Method EscolaLms\Vouchers\Services\CouponService::cartItemsWithoutExcludedFromCoupon() should return Illuminate\Support\Collection<int, Treestoneit\ShoppingCart\Models\CartItem> but returns iterable<EscolaLms\Vouchers\Models\CartItem>&Treestoneit\ShoppingCart\Models\CartItemCollection.
|
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/
|