diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97086dba..645b7544 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -171,7 +171,7 @@ jobs: - name: Run PHPStan - run: vendor/bin/phpstan analyse -c phpstan.neon + run: vendor/bin/phpstan analyse - name: Run Psalm diff --git a/phpstan.neon b/phpstan.neon index d0adffeb..c8aab8e1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,7 +6,7 @@ parameters: - src - tests/Behat - excludes_analyse: + excludePaths: # Makes PHPStan crash - 'src/DependencyInjection/Configuration.php' diff --git a/tests/InMemory/Client/Api/InMemoryApi.php b/tests/InMemory/Client/Api/InMemoryApi.php index 7fca16d2..11816bc7 100644 --- a/tests/InMemory/Client/Api/InMemoryApi.php +++ b/tests/InMemory/Client/Api/InMemoryApi.php @@ -20,7 +20,6 @@ use Http\Promise\Promise; use Psr\Http\Message\StreamInterface; use Tests\Webgriffe\SyliusAkeneoPlugin\InMemory\Client\Api\Model\ResourceInterface; -use Webmozart\Assert\Assert; /** * @template T of ResourceInterface @@ -46,8 +45,6 @@ abstract public static function addResource(ResourceInterface $resource): void; public function create(string $code, array $data = []): int { $class = $this->getResourceClass(); - Assert::isInstanceOf($class, ResourceInterface::class); - $resources = $this->getResources(); $resources[$code] = call_user_func([$class, 'create'], [$code, $data]);