diff --git a/composer.json b/composer.json index cebe095..36a9059 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,8 @@ "cakephp/bake": "^3.0.0", "cakephp/migrations": "^4.0.0", "aura/intl": "^3.0", - "vimeo/psalm": "^5.15" + "vimeo/psalm": "^5.15", + "phpstan/phpstan": "^1.10" }, "autoload": { "psr-4": { diff --git a/phpstan.neon b/phpstan.neon index 8eabef0..36e2ad0 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,6 @@ parameters: - level: 7 + level: 6 checkMissingIterableValueType: false + checkGenericClassInNonGenericObjectType: false paths: - src diff --git a/src/Model/Behavior/Strategy/ConstStrategy.php b/src/Model/Behavior/Strategy/ConstStrategy.php index 4b5f4d7..785dfe7 100644 --- a/src/Model/Behavior/Strategy/ConstStrategy.php +++ b/src/Model/Behavior/Strategy/ConstStrategy.php @@ -104,7 +104,7 @@ protected function getConstants(): array /** * @param \Cake\Event\EventInterface $event The beforeFind event that was fired. - * @param \Cake\ORM\Query $query Query + * @param \Cake\ORM\Query\SelectQuery $query Query * @param \ArrayObject $options The options for the query * @return void */