From 192b089864a93be28040321f21d7f2be42df3717 Mon Sep 17 00:00:00 2001 From: Kamil Grygierzec Date: Fri, 13 Sep 2024 11:06:18 +0200 Subject: [PATCH] Update baseline and fix PHPStan --- phpstan-baseline.neon | 20 ------------------- .../PaymentRequestFactoryInterface.php | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 9a867ece02..e5da9b7dc3 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1195,26 +1195,6 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/DataTransformer/OrderTokenValueAwareInputCommandDataTransformer.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\DataTransformer\\\\ShipmentIdAwareInputCommandDataTransformer\\:\\:supportsTransformation\\(\\) has parameter \\$object with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/DataTransformer/ShipmentIdAwareInputCommandDataTransformer.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\DataTransformer\\\\ShipmentIdAwareInputCommandDataTransformer\\:\\:transform\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/DataTransformer/ShipmentIdAwareInputCommandDataTransformer.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\DataTransformer\\\\ShipmentIdAwareInputCommandDataTransformer\\:\\:transform\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/DataTransformer/ShipmentIdAwareInputCommandDataTransformer.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\DataTransformer\\\\ShipmentIdAwareInputCommandDataTransformer\\:\\:transform\\(\\) has parameter \\$object with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/DataTransformer/ShipmentIdAwareInputCommandDataTransformer.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\DataTransformer\\\\SubresourceIdAwareCommandDataTransformer\\:\\:supportsTransformation\\(\\) has parameter \\$object with no type specified\\.$#" count: 1 diff --git a/src/Sylius/Component/Payment/Factory/PaymentRequestFactoryInterface.php b/src/Sylius/Component/Payment/Factory/PaymentRequestFactoryInterface.php index a2ff987ea5..a944431780 100644 --- a/src/Sylius/Component/Payment/Factory/PaymentRequestFactoryInterface.php +++ b/src/Sylius/Component/Payment/Factory/PaymentRequestFactoryInterface.php @@ -16,7 +16,7 @@ namespace Sylius\Component\Payment\Factory; use Sylius\Component\Payment\Model\PaymentInterface; use Sylius\Component\Payment\Model\PaymentMethodInterface; use Sylius\Component\Payment\Model\PaymentRequestInterface; -use Sylius\Component\Resource\Factory\FactoryInterface; +use Sylius\Resource\Factory\FactoryInterface; /** * @template T of PaymentRequestInterface