diff --git a/composer.json b/composer.json index 921b0dcf..1d035d14 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,8 @@ "phpunit/phpunit": "^10.0", "friendsofcake/search": "^7.0", "cakephp/authentication": "^3.0", - "cakephp/cakephp-codesniffer": "^5.0", - "phpstan/phpstan": "^1.8.5", + "cakephp/cakephp-codesniffer": "~5.3.0", + "phpstan/phpstan": "~1.12.0", "phpmd/phpmd": "^2.10", "cakephp/bake": "^3.0", "cakephp/debug_kit": "^5.0", diff --git a/phpcs.xml b/phpcs.xml index e2310608..f3d0172a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,5 +1,4 @@ - \ No newline at end of file diff --git a/src/Lib/Extension/CakeSearch/Extension.php b/src/Lib/Extension/CakeSearch/Extension.php index c44242ae..360005de 100644 --- a/src/Lib/Extension/CakeSearch/Extension.php +++ b/src/Lib/Extension/CakeSearch/Extension.php @@ -162,7 +162,8 @@ private function getSearchManager(Table $table): Manager )); } - /** @var \Search\Model\Behavior\SearchBehavior $search */ + /** @var \Search\Model\Behavior\SearchBehavior&\Cake\ORM\Behavior $search */ + /** @phpstan-ignore-next-line */ $search = $table->getBehavior('Search'); return $search->searchManager();