diff --git a/composer.json b/composer.json index f3b4423..7b467ac 100644 --- a/composer.json +++ b/composer.json @@ -41,14 +41,14 @@ "theofidry/alice-data-fixtures": "^1.0" }, "require-dev": { - "phpstan/phpstan-strict-rules": "^0.12", - "phpstan/phpstan-webmozart-assert": "^0.12", + "phpstan/phpstan-strict-rules": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", "symfony/serializer": "^5.4 || ^6.0", - "phpstan/phpstan": "^0.12" + "phpstan/phpstan": "^1.8" }, "scripts": { "analyse": [ - "vendor/bin/phpstan.phar analyse --ansi --no-progress -l 5 src" + "vendor/bin/phpstan analyse --ansi --no-progress src" ] }, "conflict": { diff --git a/phpstan.neon b/phpstan.neon index 6f0dd3b..f63c18f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,4 +2,7 @@ includes: - vendor/phpstan/phpstan-webmozart-assert/extension.neon parameters: - level: max + level: 5 + paths: + - src + - test/src/ diff --git a/src/ApiTestCase.php b/src/ApiTestCase.php index 31baa51..c9f3cd2 100644 --- a/src/ApiTestCase.php +++ b/src/ApiTestCase.php @@ -19,7 +19,6 @@ use Doctrine\ORM\EntityManager; use Fidry\AliceDataFixtures\LoaderInterface; use Fidry\AliceDataFixtures\ProcessorInterface; -use InvalidArgumentException; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\Finder\Finder; @@ -51,9 +50,9 @@ abstract class ApiTestCase extends WebTestCase /** @var EntityManager|null */ private $entityManager; - public function __construct(?string $name = null, array $data = [], $dataName = '') + public function __construct(?string $name = null) { - parent::__construct($name, $data, $dataName); + parent::__construct($name); $this->matcherFactory = new MatcherFactory(); }