phpcs and phpstan fixes

This commit is contained in:
2026-01-23 20:57:13 -08:00
parent b682ec1577
commit 36ee7db6c0
4 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,9 @@
"phpstan/phpstan": "^2.1",
"dereuromark/composer-prefer-lowest": "^0.1.10",
"cakedc/cakephp-phpstan": "^4.1",
"fig-r/psr2r-sniffer": "^2.7"
"cakephp/authentication": "^3.0",
"fig-r/psr2r-sniffer": "^2.7",
"cakephp/authorization": "3.x-dev"
},
"suggest": {
"hi-powered-dev/cake-products": "Manage products and SKUs with a heirarhical category structure, includes attributes and variants"

View File

@@ -8,3 +8,4 @@ parameters:
bootstrapFiles:
- tests/bootstrap.php
treatPhpDocTypesAsCertain: false
ignoreErrors:

View File

@@ -9,8 +9,9 @@ use Cake\Log\Log;
/**
* CartItems Controller
*
* @property \CakeCarts\Controller\Component\ShoppingCartComponent $ShoppingCart
* @property \CakeCarts\Model\Table\CartItemsTable $CartItems
* @property \Authorization\Controller\Component\AuthorizationComponent $Authorization
* @property \Authorization\Controller\Component\AuthorizationComponent|null $Authorization
*/
class CartItemsController extends AppController {

View File

@@ -11,7 +11,7 @@ use CakeCarts\Model\Enum\CartTypeId;
/**
* Carts Model
*
* @property \CakeCarts\Model\Table\UsersTable&\Cake\ORM\Association\BelongsTo $Users
* @property \Cake\ORM\Association\BelongsTo $Users
* @property \CakeCarts\Model\Table\CartItemsTable&\Cake\ORM\Association\HasMany $CartItems
*
* @method \CakeCarts\Model\Entity\Cart newEmptyEntity()