mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 18:16:13 +02:00

[TASK] Upgrade PHPStan & friends (#357)

Also re-generate the baseline, and update a type annotation to match
what the current version of jangregor/phpstan-prophecy now recognizes.
This commit is contained in:
Oliver Klee 2021-12-25 02:39:48 +01:00 committed by GitHub
parent d1f02afe79
commit 074ecf6cbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 21 deletions

View file

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace TTN\Tea\Tests\Unit\Domain\Repository\Product;
use Nimut\TestingFramework\TestCase\UnitTestCase;
use Prophecy\Prophecy\ProphecySubjectInterface;
use TTN\Tea\Domain\Repository\Product\TeaRepository;
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
use TYPO3\CMS\Extbase\Persistence\Repository;
@ -21,7 +20,7 @@ class TeaRepositoryTest extends UnitTestCase
private $subject;
/**
* @var ObjectManagerInterface&ProphecySubjectInterface
* @var ObjectManagerInterface
*/
protected $objectManager;

View file

@ -39,13 +39,13 @@
"ergebnis/composer-normalize": "^2.15.0",
"friendsofphp/php-cs-fixer": "^3.2",
"helmich/typo3-typoscript-lint": "^2.5.2",
"jangregor/phpstan-prophecy": "^0.8.1",
"jangregor/phpstan-prophecy": "^1.0.0",
"nimut/testing-framework": "^6.0.0",
"phpstan/extension-installer": "^1.1.0",
"phpstan/phpstan": "^0.12.98",
"phpstan/phpstan-phpunit": "^0.12.22",
"phpstan/phpstan": "^1.2.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpunit/phpunit": "^8.5.21",
"saschaegerer/phpstan-typo3": "^0.13.3",
"saschaegerer/phpstan-typo3": "^1.0.0",
"seld/jsonlint": "^1.8.3",
"squizlabs/php_codesniffer": "^3.6.1",
"symfony/yaml": "^4.4.29 || ^5.3.6 || ^6.0",

View file

@ -1,17 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Constant TYPO3_version not found\\.$#"
count: 1
path: Configuration/TCA/tx_tea_domain_model_product_tea.php
-
message: "#^Constant TYPO3_version not found\\.$#"
count: 1
path: Tests/Functional/Controller/TeaControllerTest.php
-
message: "#^Property TTN\\\\Tea\\\\Tests\\\\Unit\\\\Domain\\\\Repository\\\\Product\\\\TeaRepositoryTest\\:\\:\\$objectManager \\(Prophecy\\\\Prophecy\\\\ProphecySubjectInterface&TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManagerInterface\\) does not accept TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManagerInterface\\.$#"
count: 1
path: Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php