From c95816ade7700a09aec1ef223c68170c9c961cc9 Mon Sep 17 00:00:00 2001 From: Lorenzo Ruozzi Date: Tue, 8 Oct 2024 12:40:13 +0200 Subject: [PATCH] Fix CI --- composer.json | 2 +- tests/Behat/Context/Db/ProductContext.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3a4ce491..960a0d5d 100644 --- a/composer.json +++ b/composer.json @@ -100,7 +100,7 @@ "security-checker security:check": "script" }, "ecs": "ecs check", - "phpstan": "phpstan analyse -c phpstan.neon -l max src/", + "phpstan": "phpstan analyse", "psalm": "vendor/bin/psalm", "phpunit": "phpunit", "phpspec": "phpspec run", diff --git a/tests/Behat/Context/Db/ProductContext.php b/tests/Behat/Context/Db/ProductContext.php index 62e72895..ed21279c 100644 --- a/tests/Behat/Context/Db/ProductContext.php +++ b/tests/Behat/Context/Db/ProductContext.php @@ -4,6 +4,9 @@ namespace Tests\Webgriffe\SyliusAkeneoPlugin\Behat\Context\Db; +if (!interface_exists(\Sylius\Resource\Doctrine\Persistence\RepositoryInterface::class)) { + class_alias(\Sylius\Resource\Doctrine\Persistence\RepositoryInterface::class, \Sylius\Component\Resource\Repository\RepositoryInterface::class); +} use Behat\Behat\Context\Context; use Sylius\Component\Core\Model\ProductInterface; use Sylius\Component\Core\Model\ProductVariantInterface; @@ -12,7 +15,7 @@ use Sylius\Component\Product\Model\ProductAssociationInterface; use Sylius\Component\Product\Model\ProductAssociationTypeInterface; use Sylius\Component\Product\Repository\ProductAssociationTypeRepositoryInterface; -use Sylius\Component\Resource\Repository\RepositoryInterface; +use Sylius\Resource\Doctrine\Persistence\RepositoryInterface; use Webmozart\Assert\Assert; final class ProductContext implements Context