diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index dd7b8f2c..1dd0694a 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -13,13 +13,13 @@ parameters: path: ../../Classes/Domain/Repository/TeaRepository.php - - rawMessage: 'Cannot call method getUid() on mixed.' - identifier: method.nonObject - count: 1 - path: ../../Tests/Functional/Domain/Repository/TeaRepositoryTest.php + rawMessage: Provide more specific return type "TYPO3\CMS\Extbase\Persistence\QueryResultInterface" over abstract one + identifier: typePerfect.narrowReturnObjectType + count: 2 + path: ../../Classes/Domain/Repository/TeaRepository.php - - rawMessage: 'Mixed variable in a `$result->current()->...()` can skip important errors. Make sure the type is known' - identifier: typePerfect.noMixedMethodCaller + rawMessage: 'Call to an undefined method object::getUid().' + identifier: method.notFound count: 1 path: ../../Tests/Functional/Domain/Repository/TeaRepositoryTest.php diff --git a/composer.json b/composer.json index 7e3e2390..4e84a927 100644 --- a/composer.json +++ b/composer.json @@ -55,21 +55,21 @@ "php-parallel-lint/php-parallel-lint": "1.4.0", "phpmd/phpmd": "2.15.0", "phpstan/extension-installer": "1.4.3", - "phpstan/phpstan": "1.12.33 || 2.1.40", - "phpstan/phpstan-phpunit": "1.4.2 || 2.0.12", - "phpstan/phpstan-strict-rules": "1.6.2 || 2.0.8", + "phpstan/phpstan": "1.12.33 || 2.1.54", + "phpstan/phpstan-phpunit": "1.4.2 || 2.0.16", + "phpstan/phpstan-strict-rules": "1.6.2 || 2.0.11", "phpunit/phpcov": "9.0.2", "phpunit/phpunit": "10.5.63", - "rector/type-perfect": "1.0.0 || 2.1.2", + "rector/type-perfect": "1.0.0 || 2.1.4", "saschaegerer/phpstan-typo3": "1.10.2 || 2.1.1", "seld/jsonlint": "1.11.0", "spaze/phpstan-disallowed-calls": "4.12.0", - "ssch/typo3-rector": "2.15.2 || 3.11.0", + "ssch/typo3-rector": "2.15.2 || 3.14.1", "ssch/typo3-rector-testing-framework": "2.0.1 || 3.0.0", "symfony/console": "^6.4 || ^7.4", "symfony/translation": "^6.4 || ^7.4", "symfony/yaml": "^6.4 || ^7.4", - "tomasvotruba/cognitive-complexity": "0.2.3 || 1.0.0", + "tomasvotruba/cognitive-complexity": "0.2.3 || 1.1.0", "tomasvotruba/type-coverage": "1.0.0 || 2.1.0", "typo3/cms-fluid-styled-content": "^12.4 || ^13.4", "typo3/coding-standards": "0.8.0",