phpstan.yml #3
Annotations
9 errors and 2 warnings
Run tests:
src/Http/Resources/BaseProductResource.php#L48
Left side of && is always true.
|
Run tests:
src/Http/Resources/BaseProductResource.php#L49
Left side of && is always true.
|
Run tests:
src/Http/Resources/BaseProductResource.php#L50
Ternary operator condition is always true.
|
Run tests:
src/Models/CartItem.php#L73
Return type (int) of method EscolaLms\Cart\Models\CartItem::getSubtotalAttribute() should be compatible with return type (float) of method Treestoneit\ShoppingCart\Models\CartItem::getSubtotalAttribute()
|
Run tests:
src/Models/CartItem.php#L78
Return type (int) of method EscolaLms\Cart\Models\CartItem::getTotalAttribute() should be compatible with return type (float) of method Treestoneit\ShoppingCart\Models\CartItem::getTotalAttribute()
|
Run tests:
src/Services/ProductService.php#L147
Parameter #1 $productable of method EscolaLms\Cart\QueryBuilders\ProductModelQueryBuilder::whereHasProductable() expects Illuminate\Database\Eloquent\Model, EscolaLms\Cart\Contracts\Productable given.
|
Run tests:
src/Services/ProductService.php#L577
Parameter #1 $productable of method EscolaLms\Cart\QueryBuilders\ProductModelQueryBuilder::whereHasProductable() expects Illuminate\Database\Eloquent\Model, EscolaLms\Cart\Contracts\Productable given.
|
Run tests:
src/Services/ShopService.php#L184
No error to ignore is reported on line 184.
|
Run tests
Process completed with exit code 1.
|
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/
|
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/
|
Loading