diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 783d53f57d2..7ac7b072ca1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -65,21 +65,6 @@ parameters: count: 1 path: src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\AddressingBundle\\\\Validator\\\\Constraints\\\\ProvinceAddressConstraintValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\AddressingBundle\\\\Validator\\\\Constraints\\\\UniqueProvinceCollectionValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AddressingBundle/Validator/Constraints/UniqueProvinceCollectionValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\AddressingBundle\\\\Validator\\\\Constraints\\\\ZoneCannotContainItselfValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ZoneCannotContainItselfValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\AdminBundle\\\\Action\\\\Account\\\\RenderResetPasswordPageAction\\:\\:__construct\\(\\) has parameter \\$userRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1765,11 +1750,6 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Provider/ProductImageFilterProviderInterface.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Serializer\\\\ChannelDenormalizer\\:\\:__construct\\(\\) has parameter \\$channelPriceHistoryConfigFactory with generic interface Sylius\\\\Component\\\\Resource\\\\Factory\\\\FactoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Serializer/ChannelDenormalizer.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Serializer\\\\ChannelPriceHistoryConfigDenormalizer\\:\\:__construct\\(\\) has parameter \\$channelPriceHistoryConfigFactory with generic interface Sylius\\\\Component\\\\Resource\\\\Factory\\\\FactoryInterface but does not specify its types\\: T$#" count: 1 @@ -1790,16 +1770,6 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Serializer/CommandArgumentsDenormalizer.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Serializer\\\\CommandDenormalizer\\:\\:assertConstructorArgumentsPresence\\(\\) has parameter \\$data with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Serializer/CommandDenormalizer.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Serializer\\\\ProductAttributeValueNormalizer\\:\\:normalizeSelectValue\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Serializer/ProductAttributeValueNormalizer.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Serializer\\\\ProductAttributeValueNormalizer\\:\\:normalizeSelectValue\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -1920,11 +1890,6 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\AccountVerificationTokenEligibilityValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\AddingEligibleProductVariantToCartValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1935,41 +1900,16 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\AddingEligibleProductVariantToCartValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\AddingEligibleProductVariantToCartValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\AdminResetPasswordTokenNonExpiredValidator\\:\\:__construct\\(\\) has parameter \\$adminUserRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/AdminResetPasswordTokenNonExpiredValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChangedItemQuantityInCartValidator\\:\\:__construct\\(\\) has parameter \\$orderItemRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChangedItemQuantityInCartValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChangedItemQuantityInCartValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChangedItemQuantityInCartValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChosenPaymentMethodEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$paymentMethodRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\PaymentMethodRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1980,11 +1920,6 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChosenPaymentMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChosenShippingMethodEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$shipmentRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\ShipmentRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1995,81 +1930,36 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ChosenShippingMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\CorrectOrderAddressValidator\\:\\:__construct\\(\\) has parameter \\$countryRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\CorrectOrderAddressValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderItemAvailabilityValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderItemAvailabilityValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderItemAvailabilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderNotEmptyValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderNotEmptyValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderPaymentMethodEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderPaymentMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderProductEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderProductEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderShippingMethodEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderShippingMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\OrderShippingMethodEligibilityValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\PromotionCouponEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -2080,66 +1970,31 @@ parameters: count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\PromotionCouponEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ShipmentAlreadyShippedValidator\\:\\:__construct\\(\\) has parameter \\$shipmentRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\ShipmentRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ShipmentAlreadyShippedValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ShopUserNotVerifiedValidator\\:\\:__construct\\(\\) has parameter \\$shopUserRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\ShopUserNotVerifiedValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\SingleValueForProductVariantOptionValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/SingleValueForProductVariantOptionValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UniqueReviewerEmailValidator\\:\\:__construct\\(\\) has parameter \\$shopUserRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UniqueReviewerEmailValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UniqueShopUserEmailValidator\\:\\:__construct\\(\\) has parameter \\$shopUserRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UniqueShopUserEmailValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UpdateCartEmailNotAllowedValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\Constraints\\\\UpdateCartEmailNotAllowedValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ApiBundle\\\\Validator\\\\ResourceApiInputDataPropertiesValidator\\:\\:validate\\(\\) has parameter \\$inputData with no value type specified in iterable type array\\.$#" count: 1 @@ -2175,31 +2030,11 @@ parameters: count: 1 path: src/Sylius/Bundle/AttributeBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Doctrine\\\\ORM\\\\Subscriber\\\\LoadMetadataSubscriber\\:\\:mapManyToOne\\(\\) has parameter \\$subjectMapping with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\CatalogPromotion\\\\Checker\\\\InForTaxonsScopeVariantChecker\\:\\:__construct\\(\\) has parameter \\$taxonRepository with generic interface Sylius\\\\Component\\\\Taxonomy\\\\Repository\\\\TaxonRepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/CatalogPromotion/Checker/InForTaxonsScopeVariantChecker.php - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Form\\\\Type\\\\AttributeChoiceType\\:\\:__construct\\(\\) has parameter \\$attributeRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeChoiceType.php - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Form\\\\Type\\\\AttributeType\\\\Configuration\\\\SelectAttributeChoicesCollectionType\\:\\:resolveValues\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/SelectAttributeChoicesCollectionType.php - - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Form\\\\Type\\\\AttributeType\\\\Configuration\\\\SelectAttributeChoicesCollectionType\\:\\:resolveValues\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/SelectAttributeChoicesCollectionType.php - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Form\\\\Type\\\\AttributeTypeChoiceType\\:\\:__construct\\(\\) has parameter \\$attributeTypes with no value type specified in iterable type array\\.$#" count: 1 @@ -2220,21 +2055,6 @@ parameters: count: 1 path: src/Sylius/Bundle/AttributeBundle/SyliusAttributeBundle.php - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Validator\\\\Constraints\\\\ValidAttributeValueValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidAttributeValueValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Validator\\\\Constraints\\\\ValidSelectAttributeConfigurationValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidSelectAttributeConfigurationValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\AttributeBundle\\\\Validator\\\\Constraints\\\\ValidTextAttributeConfigurationValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidTextAttributeConfigurationValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ChannelBundle\\\\Collector\\\\ChannelCollector\\:\\:__construct\\(\\) has parameter \\$channelRepository with generic interface Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -2545,11 +2365,6 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Context/CustomerAndChannelBasedCartContext.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Controller\\\\ProductTaxonController\\:\\:shouldProductsPositionsBeUpdated\\(\\) has parameter \\$productTaxons with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Controller/ProductTaxonController.php - - message: "#^PHPDoc tag @var for variable \\$smConfigs has no value type specified in iterable type array\\.$#" count: 1 @@ -2690,11 +2505,6 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductVariantRepository.php - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Resolver\\\\DefaultProductVariantResolver\\:\\:__construct\\(\\) has parameter \\$productVariantRepository with generic interface Sylius\\\\Component\\\\Product\\\\Repository\\\\ProductVariantRepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Component/Product/Resolver/DefaultProductVariantResolver.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Doctrine\\\\ORM\\\\ShipmentRepository\\:\\:findOneByCustomer\\(\\) has parameter \\$id with no type specified\\.$#" count: 1 @@ -2735,11 +2545,6 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/EventListener/CanonicalizerListener.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\EventListener\\\\ChannelDeletionListener\\:\\:__construct\\(\\) has parameter \\$channelRepository with generic interface Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/EventListener/ChannelDeletionListener.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\EventListener\\\\DefaultUsernameORMListener\\:\\:onFlush\\(\\) has no return type specified\\.$#" count: 1 @@ -2750,11 +2555,6 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/EventListener/DefaultUsernameORMListener.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\EventListener\\\\PostgreSQLDefaultSchemaListener\\:\\:createSchemaManager\\(\\) return type with generic class Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/EventListener/PostgreSQLDefaultSchemaListener.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\EventListener\\\\TaxonDeletionListener\\:\\:__construct\\(\\) has parameter \\$channelRepository with generic interface Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -2995,16 +2795,6 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Fixture/Factory/OrderExampleFactory.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Fixture\\\\Factory\\\\PaymentFixture\\:\\:__construct\\(\\) has parameter \\$paymentRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\PaymentRepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Fixture/Factory/PaymentFixture.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Fixture\\\\Factory\\\\PaymentFixture\\:\\:load\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Fixture/Factory/PaymentFixture.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Fixture\\\\Factory\\\\PaymentMethodExampleFactory\\:\\:__construct\\(\\) has parameter \\$channelRepository with generic interface Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -3950,31 +3740,11 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProvider\\:\\:dropSchemaAndGetMigrateOrSchemaCreateCommands\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProvider\\:\\:getCommands\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProvider\\:\\:getCreateDatabaseWithSchemaCommands\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProvider\\:\\:getCreateSchemaOrRunMigrationsCommand\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProvider\\:\\:getSchemaManager\\(\\) return type with generic class Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Installer\\\\Provider\\\\DatabaseSetupCommandsProviderInterface\\:\\:getCommands\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -4305,36 +4075,11 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Twig/FilterExtension.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\CartItemAvailabilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/CartItemAvailabilityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\ChannelDefaultLocaleEnabledValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelDefaultLocaleEnabledValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\ExistingChannelCodeValidator\\:\\:__construct\\(\\) has parameter \\$channelRepository with generic interface Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\ExistingChannelCodeValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\HasAllPricesDefinedValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllPricesDefinedValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\HasAllVariantPricesDefinedValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllVariantPricesDefinedValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\HasEnabledEntityValidator\\:\\:isLastEnabledEntity\\(\\) has parameter \\$result with no value type specified in iterable type array\\.$#" count: 1 @@ -4345,61 +4090,21 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\HasEnabledEntityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\LocalesAwareValidAttributeValueValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/LocalesAwareValidAttributeValueValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\OrderPaymentMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\OrderProductEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\OrderShippingMethodEligibilityValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\RegisteredUserValidator\\:\\:__construct\\(\\) has parameter \\$customerRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\RegisteredUserValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\TranslationForExistingLocalesValidator\\:\\:__construct\\(\\) has parameter \\$localeRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\TranslationForExistingLocalesValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\UniqueReviewerEmailValidator\\:\\:__construct\\(\\) has parameter \\$userRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Constraints\\\\UniqueReviewerEmailValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\Validator\\\\Initializer\\\\CustomerInitializer\\:\\:initialize\\(\\) has parameter \\$object with no type specified\\.$#" count: 1 @@ -4415,31 +4120,11 @@ parameters: count: 1 path: src/Sylius/Bundle/CurrencyBundle/SyliusCurrencyBundle.php - - - message: "#^Method Sylius\\\\Bundle\\\\CurrencyBundle\\\\Validator\\\\Constraints\\\\DifferentSourceTargetCurrencyValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CurrencyBundle\\\\Validator\\\\Constraints\\\\DifferentSourceTargetCurrencyValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CurrencyBundle\\\\Validator\\\\Constraints\\\\UniqueCurrencyPairValidator\\:\\:__construct\\(\\) has parameter \\$exchangeRateRepository with generic interface Sylius\\\\Component\\\\Currency\\\\Repository\\\\ExchangeRateRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\CurrencyBundle\\\\Validator\\\\Constraints\\\\UniqueCurrencyPairValidator\\:\\:validate\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\CurrencyBundle\\\\Validator\\\\Constraints\\\\UniqueCurrencyPairValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\CustomerBundle\\\\Doctrine\\\\ORM\\\\CustomerGroupRepository\\:\\:findByPhrase\\(\\) return type has no value type specified in iterable type iterable\\.$#" count: 1 @@ -4475,11 +4160,6 @@ parameters: count: 1 path: src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStock.php - - - message: "#^Method Sylius\\\\Bundle\\\\InventoryBundle\\\\Validator\\\\Constraints\\\\InStockValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStockValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\LocaleBundle\\\\Form\\\\Type\\\\LocaleChoiceType\\:\\:__construct\\(\\) has parameter \\$localeRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -4620,11 +4300,6 @@ parameters: count: 1 path: src/Sylius/Bundle/PayumBundle/Controller/PayumController.php - - - message: "#^Method Sylius\\\\Bundle\\\\PayumBundle\\\\DependencyInjection\\\\Compiler\\\\UnregisterStripeGatewayTypePass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PayumBundle/DependencyInjection/Compiler/UnregisterStripeGatewayTypePass.php - - message: "#^Method Sylius\\\\Bundle\\\\PayumBundle\\\\Factory\\\\GetStatusFactory\\:\\:createNewWithModel\\(\\) has parameter \\$model with no type specified\\.$#" count: 1 @@ -4835,21 +4510,11 @@ parameters: count: 1 path: src/Sylius/Bundle/ProductBundle/SyliusProductBundle.php - - - message: "#^Method Sylius\\\\Bundle\\\\ProductBundle\\\\Validator\\\\ProductVariantCombinationValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ProductBundle/Validator/ProductVariantCombinationValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ProductBundle\\\\Validator\\\\UniqueSimpleProductCodeValidator\\:\\:__construct\\(\\) has parameter \\$productVariantRepository with generic interface Sylius\\\\Component\\\\Product\\\\Repository\\\\ProductVariantRepositoryInterface but does not specify its types\\: T$#" count: 1 path: src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\ProductBundle\\\\Validator\\\\UniqueSimpleProductCodeValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Command\\\\GenerateCouponsCommand\\:\\:__construct\\(\\) has parameter \\$promotionRepository with generic interface Sylius\\\\Component\\\\Promotion\\\\Repository\\\\PromotionRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -4980,11 +4645,6 @@ parameters: count: 1 path: src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\CatalogPromotionActionValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php - - message: "#^Property Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\CatalogPromotionActionValidator\\:\\:\\$actionValidators type has no value type specified in iterable type array\\.$#" count: 1 @@ -5005,31 +4665,11 @@ parameters: count: 1 path: src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\CatalogPromotionScopeValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php - - message: "#^Property Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\CatalogPromotionScopeValidator\\:\\:\\$scopeValidators type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php - - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\CouponGenerationAmountValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PromotionBundle/Validator/CouponGenerationAmountValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\PromotionDateRangeValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PromotionBundle/Validator/PromotionDateRangeValidator.php - - - - message: "#^Method Sylius\\\\Bundle\\\\PromotionBundle\\\\Validator\\\\PromotionSubjectCouponValidator\\:\\:validate\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/Sylius/Bundle/PromotionBundle/Validator/PromotionSubjectCouponValidator.php - - message: "#^Method Sylius\\\\Bundle\\\\ReviewBundle\\\\DependencyInjection\\\\SyliusReviewExtension\\:\\:createReviewListeners\\(\\) has parameter \\$reviewSubjects with no value type specified in iterable type array\\.$#" count: 1 @@ -5580,11 +5220,6 @@ parameters: count: 1 path: src/Sylius/Bundle/UserBundle/Provider/AbstractUserProvider.php - - - message: "#^Interface Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\UserProviderInterface extends generic interface Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserProviderInterface but does not specify its types\\: TUser$#" - count: 1 - path: src/Sylius/Bundle/UserBundle/Provider/UserProviderInterface.php - - message: "#^Method Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\AbstractUserProvider\\:\\:loadUserByUsername\\(\\) has parameter \\$username with no type specified\\.$#" count: 1 @@ -5595,6 +5230,11 @@ parameters: count: 1 path: src/Sylius/Bundle/UserBundle/Provider/AbstractUserProvider.php + - + message: "#^Interface Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\UserProviderInterface extends generic interface Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserProviderInterface but does not specify its types\\: TUser$#" + count: 1 + path: src/Sylius/Bundle/UserBundle/Provider/UserProviderInterface.php + - message: "#^Method Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\UserProviderInterface\\:\\:loadUserByUsername\\(\\) has parameter \\$username with no type specified\\.$#" count: 1 @@ -5650,46 +5290,6 @@ parameters: count: 1 path: src/Sylius/Component/Addressing/Factory/ZoneFactoryInterface.php - - - message: "#^Constant Sylius\\\\Component\\\\Addressing\\\\Matcher\\\\ZoneMatcher\\:\\:PRIORITIES type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Matcher\\\\ZoneMatcher\\:\\:__construct\\(\\) has parameter \\$zoneRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Matcher\\\\ZoneMatcher\\:\\:getZones\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Model\\\\Address\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Model/Address.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Model\\\\Country\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Model/Country.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Model\\\\Province\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Model/Province.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Model\\\\Zone\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Model/Zone.php - - - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Model\\\\ZoneMember\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Addressing/Model/ZoneMember.php - - message: "#^Method Sylius\\\\Component\\\\Addressing\\\\Provider\\\\ProvinceNamingProvider\\:\\:__construct\\(\\) has parameter \\$provinceRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -5770,11 +5370,6 @@ parameters: count: 1 path: src/Sylius/Component/Attribute/Model/Attribute.php - - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\Attribute\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Attribute/Model/Attribute.php - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\Attribute\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -5790,21 +5385,11 @@ parameters: count: 1 path: src/Sylius/Component/Attribute/Model/AttributeInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\AttributeTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Attribute/Model/AttributeTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\AttributeValue\\:\\:assertAttributeIsSet\\(\\) has no return type specified\\.$#" count: 1 path: src/Sylius/Component/Attribute/Model/AttributeValue.php - - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\AttributeValue\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Attribute/Model/AttributeValue.php - - message: "#^Method Sylius\\\\Component\\\\Attribute\\\\Model\\\\AttributeValue\\:\\:getJson\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -5875,11 +5460,6 @@ parameters: count: 1 path: src/Sylius/Component/Channel/Factory/ChannelFactory.php - - - message: "#^Method Sylius\\\\Component\\\\Channel\\\\Model\\\\Channel\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Channel/Model/Channel.php - - message: "#^Method Sylius\\\\Component\\\\Channel\\\\Repository\\\\ChannelRepositoryInterface\\:\\:findAllWithBasicData\\(\\) return type has no value type specified in iterable type iterable\\.$#" count: 1 @@ -6030,16 +5610,6 @@ parameters: count: 1 path: src/Sylius/Component/Core/Distributor/MinimumPriceDistributorInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Distributor\\\\ProportionalIntegerDistributor\\:\\:distribute\\(\\) has parameter \\$integers with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Component/Core/Distributor/ProportionalIntegerDistributor.php - - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Distributor\\\\ProportionalIntegerDistributor\\:\\:distribute\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Sylius/Component/Core/Distributor/ProportionalIntegerDistributor.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Distributor\\\\ProportionalIntegerDistributorInterface\\:\\:distribute\\(\\) has parameter \\$integers with no value type specified in iterable type array\\.$#" count: 1 @@ -6105,11 +5675,6 @@ parameters: count: 1 path: src/Sylius/Component/Core/Model/AdminUserInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPriceHistoryConfig\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/ChannelPriceHistoryConfig.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPriceHistoryConfigInterface\\:\\:getTaxonsExcludedFromShowingLowestPrice\\(\\) return type with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#" count: 1 @@ -6120,41 +5685,21 @@ parameters: count: 1 path: src/Sylius/Component/Core/Model/ChannelPricing.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPricing\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/ChannelPricing.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPricingInterface\\:\\:getAppliedPromotions\\(\\) return type with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#" count: 1 path: src/Sylius/Component/Core/Model/ChannelPricingInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPricingLogEntry\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/ChannelPricingLogEntry.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\CustomerInterface\\:\\:setUser\\(\\) has no return type specified\\.$#" count: 1 path: src/Sylius/Component/Core/Model/CustomerInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\Image\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/Image.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\Product\\:\\:getVariantSelectionMethodLabels\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Core/Model/Product.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ProductTaxon\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/ProductTaxon.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ProductVariant\\:\\:getAppliedPromotionsForChannel\\(\\) return type with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#" count: 1 @@ -6170,11 +5715,6 @@ parameters: count: 1 path: src/Sylius/Component/Core/Model/ProductVariantInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Model\\\\ShopBillingData\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Core/Model/ShopBillingData.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\OrderProcessing\\\\OrderAdjustmentsClearer\\:\\:__construct\\(\\) has parameter \\$adjustmentsToRemove with no value type specified in iterable type array\\.$#" count: 1 @@ -6760,11 +6300,6 @@ parameters: count: 1 path: src/Sylius/Component/Core/Taxation/Applicator/OrderShipmentTaxesApplicator.php - - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Test\\\\Factory\\\\TestPromotionFactory\\:\\:__construct\\(\\) has parameter \\$promotionFactory with generic interface Sylius\\\\Component\\\\Resource\\\\Factory\\\\FactoryInterface but does not specify its types\\: T$#" - count: 1 - path: src/Sylius/Component/Core/Test/Factory/TestPromotionFactory.php - - message: "#^Method Sylius\\\\Component\\\\Core\\\\Test\\\\Services\\\\DefaultChannelFactory\\:\\:__construct\\(\\) has parameter \\$channelFactory with generic interface Sylius\\\\Component\\\\Channel\\\\Factory\\\\ChannelFactoryInterface but does not specify its types\\: T$#" count: 1 @@ -6880,41 +6415,16 @@ parameters: count: 1 path: src/Sylius/Component/Currency/Converter/CurrencyConverter.php - - - message: "#^Method Sylius\\\\Component\\\\Currency\\\\Model\\\\Currency\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Currency/Model/Currency.php - - - - message: "#^Method Sylius\\\\Component\\\\Currency\\\\Model\\\\ExchangeRate\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Currency/Model/ExchangeRate.php - - message: "#^Method Sylius\\\\Component\\\\Currency\\\\Model\\\\ExchangeRateInterface\\:\\:setRatio\\(\\) has no return type specified\\.$#" count: 1 path: src/Sylius/Component/Currency/Model/ExchangeRateInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Customer\\\\Model\\\\Customer\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Customer/Model/Customer.php - - - - message: "#^Method Sylius\\\\Component\\\\Customer\\\\Model\\\\CustomerGroup\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Customer/Model/CustomerGroup.php - - message: "#^Method Sylius\\\\Component\\\\Customer\\\\Repository\\\\CustomerGroupRepositoryInterface\\:\\:findByPhrase\\(\\) return type has no value type specified in iterable type iterable\\.$#" count: 1 path: src/Sylius/Component/Customer/Repository/CustomerGroupRepositoryInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Inventory\\\\Model\\\\InventoryUnit\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Inventory/Model/InventoryUnit.php - - message: "#^Property Sylius\\\\Component\\\\Locale\\\\Context\\\\CompositeLocaleContext\\:\\:\\$localeContexts with generic class Laminas\\\\Stdlib\\\\PriorityQueue does not specify its types\\: TValue, TPriority$#" count: 1 @@ -6925,11 +6435,6 @@ parameters: count: 1 path: src/Sylius/Component/Locale/Context/LocaleNotFoundException.php - - - message: "#^Method Sylius\\\\Component\\\\Locale\\\\Model\\\\Locale\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Locale/Model/Locale.php - - message: "#^Method Sylius\\\\Component\\\\Locale\\\\Provider\\\\LocaleProvider\\:\\:__construct\\(\\) has parameter \\$localeRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -6975,11 +6480,6 @@ parameters: count: 1 path: src/Sylius/Component/Order/Model/Adjustment.php - - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\Adjustment\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Order/Model/Adjustment.php - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\Adjustment\\:\\:setDetails\\(\\) has parameter \\$details with no value type specified in iterable type array\\.$#" count: 1 @@ -6995,26 +6495,6 @@ parameters: count: 1 path: src/Sylius/Component/Order/Model/AdjustmentInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\Order\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Order/Model/Order.php - - - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\OrderItem\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Order/Model/OrderItem.php - - - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\OrderItemUnit\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Order/Model/OrderItemUnit.php - - - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Model\\\\OrderSequence\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Order/Model/OrderSequence.php - - message: "#^Method Sylius\\\\Component\\\\Order\\\\Modifier\\\\OrderItemQuantityModifier\\:\\:__construct\\(\\) has parameter \\$orderItemUnitFactory with generic interface Sylius\\\\Component\\\\Order\\\\Factory\\\\OrderItemUnitFactoryInterface but does not specify its types\\: T$#" count: 1 @@ -7065,11 +6545,6 @@ parameters: count: 1 path: src/Sylius/Component/Payment/Model/Payment.php - - - message: "#^Method Sylius\\\\Component\\\\Payment\\\\Model\\\\Payment\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Payment/Model/Payment.php - - message: "#^Method Sylius\\\\Component\\\\Payment\\\\Model\\\\Payment\\:\\:setDetails\\(\\) has parameter \\$details with no value type specified in iterable type array\\.$#" count: 1 @@ -7085,16 +6560,6 @@ parameters: count: 1 path: src/Sylius/Component/Payment/Model/PaymentInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Payment\\\\Model\\\\PaymentMethod\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Payment/Model/PaymentMethod.php - - - - message: "#^Method Sylius\\\\Component\\\\Payment\\\\Model\\\\PaymentMethodTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Payment/Model/PaymentMethodTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Payment\\\\Resolver\\\\DefaultPaymentMethodResolver\\:\\:__construct\\(\\) has parameter \\$paymentMethodRepository with generic interface Sylius\\\\Component\\\\Payment\\\\Repository\\\\PaymentMethodRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -7200,61 +6665,6 @@ parameters: count: 1 path: src/Sylius/Component/Product/Generator/ProductVariantGenerator.php - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\Product\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/Product.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductAssociation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductAssociation.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductAssociationType\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductAssociationType.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductAssociationTypeTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductAssociationTypeTranslation.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOption\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductOption.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductOptionTranslation.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionValue\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductOptionValue.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionValueTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductOptionValueTranslation.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductTranslation.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariant\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductVariant.php - - - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariantTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Product/Model/ProductVariantTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Product\\\\Repository\\\\ProductRepositoryInterface\\:\\:findByPhrase\\(\\) return type has no value type specified in iterable type iterable\\.$#" count: 1 @@ -7275,6 +6685,11 @@ parameters: count: 1 path: src/Sylius/Component/Product/Repository/ProductVariantRepositoryInterface.php + - + message: "#^Method Sylius\\\\Component\\\\Product\\\\Resolver\\\\DefaultProductVariantResolver\\:\\:__construct\\(\\) has parameter \\$productVariantRepository with generic interface Sylius\\\\Component\\\\Product\\\\Repository\\\\ProductVariantRepositoryInterface but does not specify its types\\: T$#" + count: 1 + path: src/Sylius/Component/Product/Resolver/DefaultProductVariantResolver.php + - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Action\\\\PromotionActionCommandInterface\\:\\:execute\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7330,26 +6745,11 @@ parameters: count: 1 path: src/Sylius/Component/Promotion/Generator/PromotionCouponGenerator.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotion\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/CatalogPromotion.php - - - - message: "#^Property Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotion\\:\\:\\$actions with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/CatalogPromotion.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionAction\\:\\:getConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Promotion/Model/CatalogPromotionAction.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionAction\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/CatalogPromotionAction.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionAction\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7375,11 +6775,6 @@ parameters: count: 1 path: src/Sylius/Component/Promotion/Model/CatalogPromotionScope.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionScope\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/CatalogPromotionScope.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionScope\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7400,31 +6795,16 @@ parameters: count: 1 path: src/Sylius/Component/Promotion/Model/CatalogPromotionScopeInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\CatalogPromotionTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/CatalogPromotionTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\ConfigurablePromotionElementInterface\\:\\:getConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Promotion/Model/ConfigurablePromotionElementInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\Promotion\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/Promotion.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionAction\\:\\:getConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Promotion/Model/PromotionAction.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionAction\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/PromotionAction.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionAction\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7435,21 +6815,11 @@ parameters: count: 1 path: src/Sylius/Component/Promotion/Model/PromotionActionInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionCoupon\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/PromotionCoupon.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionRule\\:\\:getConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Promotion/Model/PromotionRule.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionRule\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/PromotionRule.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionRule\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7460,11 +6830,6 @@ parameters: count: 1 path: src/Sylius/Component/Promotion/Model/PromotionRuleInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Model\\\\PromotionTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Promotion/Model/PromotionTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Promotion\\\\Provider\\\\ActivePromotionsProvider\\:\\:__construct\\(\\) has parameter \\$promotionRepository with generic interface Sylius\\\\Component\\\\Promotion\\\\Repository\\\\PromotionRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -7490,11 +6855,6 @@ parameters: count: 1 path: src/Sylius/Component/Review/Factory/ReviewFactory.php - - - message: "#^Method Sylius\\\\Component\\\\Review\\\\Model\\\\Review\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Review/Model/Review.php - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Calculator\\\\CalculatorInterface\\:\\:calculate\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7530,31 +6890,11 @@ parameters: count: 1 path: src/Sylius/Component/Shipping/Model/ConfigurableShippingMethodElementInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\Shipment\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/Shipment.php - - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShipmentUnit\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/ShipmentUnit.php - - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingCategory\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/ShippingCategory.php - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethod\\:\\:getConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: src/Sylius/Component/Shipping/Model/ShippingMethod.php - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethod\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/ShippingMethod.php - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethod\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7580,11 +6920,6 @@ parameters: count: 1 path: src/Sylius/Component/Shipping/Model/ShippingMethodRule.php - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethodRule\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/ShippingMethodRule.php - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethodRule\\:\\:setConfiguration\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#" count: 1 @@ -7595,11 +6930,6 @@ parameters: count: 1 path: src/Sylius/Component/Shipping/Model/ShippingMethodRuleInterface.php - - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Model\\\\ShippingMethodTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Shipping/Model/ShippingMethodTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Shipping\\\\Resolver\\\\DefaultShippingMethodResolver\\:\\:__construct\\(\\) has parameter \\$shippingMethodRepository with generic interface Sylius\\\\Component\\\\Shipping\\\\Repository\\\\ShippingMethodRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -7610,16 +6940,6 @@ parameters: count: 1 path: src/Sylius/Component/Shipping/Resolver/ShippingMethodsResolver.php - - - message: "#^Method Sylius\\\\Component\\\\Taxation\\\\Model\\\\TaxCategory\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Taxation/Model/TaxCategory.php - - - - message: "#^Method Sylius\\\\Component\\\\Taxation\\\\Model\\\\TaxRate\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Taxation/Model/TaxRate.php - - message: "#^Method Sylius\\\\Component\\\\Taxation\\\\Resolver\\\\TaxRateResolver\\:\\:__construct\\(\\) has parameter \\$taxRateRepository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -7645,16 +6965,6 @@ parameters: count: 1 path: src/Sylius/Component/Taxonomy/Factory/TaxonFactory.php - - - message: "#^Method Sylius\\\\Component\\\\Taxonomy\\\\Model\\\\Taxon\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Taxonomy/Model/Taxon.php - - - - message: "#^Method Sylius\\\\Component\\\\Taxonomy\\\\Model\\\\TaxonTranslation\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/Taxonomy/Model/TaxonTranslation.php - - message: "#^Method Sylius\\\\Component\\\\Taxonomy\\\\Repository\\\\TaxonRepositoryInterface\\:\\:findChildrenByChannelMenuTaxon\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -7675,11 +6985,6 @@ parameters: count: 1 path: src/Sylius/Component/User/Model/User.php - - - message: "#^Method Sylius\\\\Component\\\\User\\\\Model\\\\User\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/User/Model/User.php - - message: "#^Method Sylius\\\\Component\\\\User\\\\Model\\\\User\\:\\:getRoles\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -7695,11 +7000,6 @@ parameters: count: 1 path: src/Sylius/Component/User/Model/UserInterface.php - - - message: "#^Method Sylius\\\\Component\\\\User\\\\Model\\\\UserOAuth\\:\\:getId\\(\\) has no return type specified\\.$#" - count: 1 - path: src/Sylius/Component/User/Model/UserOAuth.php - - message: "#^Method Sylius\\\\Component\\\\User\\\\Security\\\\Checker\\\\TokenUniquenessChecker\\:\\:__construct\\(\\) has parameter \\$repository with generic interface Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface but does not specify its types\\: T$#" count: 1 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f3ec2c742f4..6deadb25a2e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -42,3 +42,4 @@ parameters: - '/Class Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken constructor invoked with 4 parameters\, 2\-3 required./' - '/Method Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface\:\:supportsNormalization\(\) invoked with 3 parameters\, 1\-2 required\./' - '/Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface::normalize\(\) invoked with 2 parameters, 1 required./' + - '/Method Sylius\\Component\\(\w+)\\Model\\(\w+)\:\:getId\(\) has no return type specified./' diff --git a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php index bd595c690c5..fa4996c84a5 100644 --- a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php +++ b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ProvinceAddressConstraintValidator.php @@ -27,7 +27,7 @@ public function __construct(private RepositoryInterface $countryRepository, priv { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (!$value instanceof AddressInterface) { throw new \InvalidArgumentException( diff --git a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/UniqueProvinceCollectionValidator.php b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/UniqueProvinceCollectionValidator.php index ed73b1245d4..caa18df2154 100644 --- a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/UniqueProvinceCollectionValidator.php +++ b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/UniqueProvinceCollectionValidator.php @@ -21,7 +21,7 @@ final class UniqueProvinceCollectionValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var Collection $value */ Assert::allIsInstanceOf($value, ProvinceInterface::class); diff --git a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ZoneCannotContainItselfValidator.php b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ZoneCannotContainItselfValidator.php index 9e97374cb17..8519fd15991 100644 --- a/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ZoneCannotContainItselfValidator.php +++ b/src/Sylius/Bundle/AddressingBundle/Validator/Constraints/ZoneCannotContainItselfValidator.php @@ -21,7 +21,7 @@ final class ZoneCannotContainItselfValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if ($value === null) { return; diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php index 273cea3e754..bfbf7d726cb 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AccountVerificationTokenEligibilityValidator.php @@ -27,8 +27,7 @@ public function __construct(private RepositoryInterface $shopUserRepository) { } - /** @param VerifyCustomerAccount|mixed $value */ - public function validate($value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, VerifyCustomerAccount::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php index 9d43e13cbe1..9aa8358721c 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AddingEligibleProductVariantToCartValidator.php @@ -34,7 +34,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, AddItemToCart::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AdminResetPasswordTokenNonExpiredValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AdminResetPasswordTokenNonExpiredValidator.php index f2bcce232b0..0b39d5266ef 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AdminResetPasswordTokenNonExpiredValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/AdminResetPasswordTokenNonExpiredValidator.php @@ -29,8 +29,7 @@ public function __construct( ) { } - /** @param ResetPassword|mixed $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ResetPassword::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php index 8f33742ea63..eb4ecb93037 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChangedItemQuantityInCartValidator.php @@ -37,7 +37,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ChangeItemQuantityInCart::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CheckoutCompletionValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CheckoutCompletionValidator.php index ec2931d5528..73217bf3247 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CheckoutCompletionValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CheckoutCompletionValidator.php @@ -34,8 +34,7 @@ public function __construct( ) { } - /** @param OrderTokenValueAwareInterface $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php index ad0607c711b..aeb9d172a61 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenPaymentMethodEligibilityValidator.php @@ -33,7 +33,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ChoosePaymentMethod::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php index b2077660e3e..5076be2fa22 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ChosenShippingMethodEligibilityValidator.php @@ -33,7 +33,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var ChooseShippingMethod $value */ Assert::isInstanceOf($value, ChooseShippingMethod::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ConfirmResetPasswordValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ConfirmResetPasswordValidator.php index edfb5de5c84..f86b6b81bd1 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ConfirmResetPasswordValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ConfirmResetPasswordValidator.php @@ -21,8 +21,7 @@ /** @experimental */ final class ConfirmResetPasswordValidator extends ConstraintValidator { - /** @param ResetPassword|mixed $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ResetPassword::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectChangeShopUserConfirmPasswordValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectChangeShopUserConfirmPasswordValidator.php index fab2ac75e5a..395a0008e8c 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectChangeShopUserConfirmPasswordValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectChangeShopUserConfirmPasswordValidator.php @@ -21,8 +21,7 @@ /** @experimental */ final class CorrectChangeShopUserConfirmPasswordValidator extends ConstraintValidator { - /** @param ChangeShopUserPassword|mixed $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ChangeShopUserPassword::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php index 5c11c78b7df..ba058a57814 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/CorrectOrderAddressValidator.php @@ -27,7 +27,7 @@ public function __construct(private RepositoryInterface $countryRepository) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var UpdateCart $value */ Assert::isInstanceOf($value, UpdateCart::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php index ac1d90a4dd2..fbef9b13a62 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderItemAvailabilityValidator.php @@ -31,7 +31,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint) + public function validate(mixed $value , Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php index d519d60ba72..e55fc09212b 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderNotEmptyValidator.php @@ -30,7 +30,7 @@ public function __construct(private OrderRepositoryInterface $orderRepository) /** * @throws \InvalidArgumentException */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php index 74c62470796..7cb99a31aa3 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php @@ -28,7 +28,7 @@ public function __construct(private OrderRepositoryInterface $orderRepository) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php index 630863b6202..ae26b8732a9 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderProductEligibilityValidator.php @@ -31,7 +31,7 @@ public function __construct(private OrderRepositoryInterface $orderRepository) /** * @throws \InvalidArgumentException */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php index 053ae41fbc8..8f5b6021241 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/OrderShippingMethodEligibilityValidator.php @@ -32,7 +32,7 @@ public function __construct( ) { } - public function validate(mixed $value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php index ed1874915e5..e33dd642df2 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/PromotionCouponEligibilityValidator.php @@ -33,7 +33,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value , Constraint $constraint): void { Assert::isInstanceOf($value, UpdateCart::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php index 31cdc997c9d..688c68f9ab0 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShipmentAlreadyShippedValidator.php @@ -27,7 +27,7 @@ public function __construct(private ShipmentRepositoryInterface $shipmentReposit { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($constraint, ShipmentAlreadyShipped::class); Assert::isInstanceOf($value, ShipShipment::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php index 859b78d1181..02604234c7f 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserNotVerifiedValidator.php @@ -27,7 +27,7 @@ public function __construct(private UserRepositoryInterface $shopUserRepository) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ShopUserIdAwareInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenExistsValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenExistsValidator.php index 38592bdb173..cbd058c2192 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenExistsValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenExistsValidator.php @@ -29,8 +29,7 @@ public function __construct(private UserRepositoryInterface $shopUserRepository) { } - /** @param string $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::string($value); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenNotExpiredValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenNotExpiredValidator.php index e2a1cfd9053..ac724d86ea8 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenNotExpiredValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/ShopUserResetPasswordTokenNotExpiredValidator.php @@ -31,8 +31,7 @@ public function __construct( ) { } - /** @param string $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::string($value); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/SingleValueForProductVariantOptionValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/SingleValueForProductVariantOptionValidator.php index f7e2d103f93..e0963fb67fd 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/SingleValueForProductVariantOptionValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/SingleValueForProductVariantOptionValidator.php @@ -22,7 +22,7 @@ /** @experimental */ final class SingleValueForProductVariantOptionValidator extends ConstraintValidator { - public function validate(mixed $value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { /** @var ProductVariantInterface $value */ Assert::isInstanceOf($value, ProductVariantInterface::class); diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php index 15167aa1a7e..d64c2f47d67 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueReviewerEmailValidator.php @@ -30,7 +30,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if ($value === null) { return; diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php index f4c849836b4..a9309171452 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UniqueShopUserEmailValidator.php @@ -28,7 +28,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if ($value === null) { return; diff --git a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php index 2aa9f5798ed..b925cbcc626 100644 --- a/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php +++ b/src/Sylius/Bundle/ApiBundle/Validator/Constraints/UpdateCartEmailNotAllowedValidator.php @@ -31,7 +31,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, OrderTokenValueAwareInterface::class); Assert::isInstanceOf($value, CustomerEmailAwareInterface::class); diff --git a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidAttributeValueValidator.php b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidAttributeValueValidator.php index 159f9ebe285..096702ff861 100644 --- a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidAttributeValueValidator.php +++ b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidAttributeValueValidator.php @@ -26,7 +26,7 @@ public function __construct(private ServiceRegistryInterface $attributeTypeRegis { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (!$value instanceof AttributeValueInterface) { throw new UnexpectedTypeException($value::class, AttributeValueInterface::class); diff --git a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidSelectAttributeConfigurationValidator.php b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidSelectAttributeConfigurationValidator.php index 726e303239d..d6ba4d42629 100644 --- a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidSelectAttributeConfigurationValidator.php +++ b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidSelectAttributeConfigurationValidator.php @@ -21,7 +21,7 @@ final class ValidSelectAttributeConfigurationValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var AttributeInterface $value */ Assert::isInstanceOf($value, AttributeInterface::class); diff --git a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidTextAttributeConfigurationValidator.php b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidTextAttributeConfigurationValidator.php index a8f9613b01a..17cc5d3c04f 100644 --- a/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidTextAttributeConfigurationValidator.php +++ b/src/Sylius/Bundle/AttributeBundle/Validator/Constraints/ValidTextAttributeConfigurationValidator.php @@ -21,7 +21,7 @@ final class ValidTextAttributeConfigurationValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var AttributeInterface $value */ Assert::isInstanceOf($value, AttributeInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/CartItemAvailabilityValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/CartItemAvailabilityValidator.php index 916a332cda3..f0cc0ecc5a0 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/CartItemAvailabilityValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/CartItemAvailabilityValidator.php @@ -27,7 +27,7 @@ public function __construct(private AvailabilityCheckerInterface $availabilityCh { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var AddToCartCommandInterface $value */ Assert::isInstanceOf($value, AddToCartCommandInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelCodeCollectionValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelCodeCollectionValidator.php index 94e9939588d..e39bd03dd3b 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelCodeCollectionValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelCodeCollectionValidator.php @@ -28,8 +28,7 @@ public function __construct(private ChannelRepositoryInterface $channelRepositor { } - /** @param mixed $value */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (!$constraint instanceof ChannelCodeCollection) { throw new UnexpectedTypeException($constraint, ChannelCodeCollection::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelDefaultLocaleEnabledValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelDefaultLocaleEnabledValidator.php index 0d5d84127f9..af3e6c3d4a8 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelDefaultLocaleEnabledValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ChannelDefaultLocaleEnabledValidator.php @@ -20,7 +20,7 @@ final class ChannelDefaultLocaleEnabledValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var ChannelDefaultLocaleEnabled $constraint */ Assert::isInstanceOf($constraint, ChannelDefaultLocaleEnabled::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php index 13fa75739b8..35f78eced1d 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/ExistingChannelCodeValidator.php @@ -24,7 +24,7 @@ public function __construct(private ChannelRepositoryInterface $channelRepositor { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::nullOrString($value); Assert::isInstanceOf($constraint, ExistingChannelCode::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllPricesDefinedValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllPricesDefinedValidator.php index afe94766128..aa2a3fcfa34 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllPricesDefinedValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllPricesDefinedValidator.php @@ -23,7 +23,7 @@ final class HasAllPricesDefinedValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, ProductVariantInterface::class); Assert::isInstanceOf($constraint, HasAllPricesDefined::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllVariantPricesDefinedValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllVariantPricesDefinedValidator.php index 215346a43cb..9fc60701537 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllVariantPricesDefinedValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasAllVariantPricesDefinedValidator.php @@ -23,7 +23,7 @@ final class HasAllVariantPricesDefinedValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var ProductInterface $value */ Assert::isInstanceOf($value, ProductInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php index 7157f5941d6..3b69735cc04 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php @@ -40,7 +40,7 @@ public function __construct( } } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var HasEnabledEntity $constraint */ Assert::isInstanceOf($constraint, HasEnabledEntity::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/LocalesAwareValidAttributeValueValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/LocalesAwareValidAttributeValueValidator.php index a1244e7b965..9fcc32ce245 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/LocalesAwareValidAttributeValueValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/LocalesAwareValidAttributeValueValidator.php @@ -32,7 +32,7 @@ public function __construct( /** * @throws \InvalidArgumentException */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, AttributeValueInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php index 05ed130a04c..28870e086c5 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderPaymentMethodEligibilityValidator.php @@ -23,7 +23,7 @@ final class OrderPaymentMethodEligibilityValidator extends ConstraintValidator /** * @throws \InvalidArgumentException */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var OrderInterface $value */ Assert::isInstanceOf($value, OrderInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php index 5f00ea1b13b..5d34c90e443 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php @@ -24,7 +24,7 @@ final class OrderProductEligibilityValidator extends ConstraintValidator /** * @throws \InvalidArgumentException */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var OrderInterface $value */ Assert::isInstanceOf($value, OrderInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php index e6d61284eb0..df4932db6e8 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/RegisteredUserValidator.php @@ -25,7 +25,7 @@ public function __construct(private RepositoryInterface $customerRepository) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var CustomerInterface $value */ Assert::isInstanceOf($value, CustomerInterface::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php index 7a58be0c564..62e22356fe3 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/TranslationForExistingLocalesValidator.php @@ -27,7 +27,7 @@ public function __construct(private RepositoryInterface $localeRepository) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { Assert::isInstanceOf($value, TranslatableInterface::class); Assert::isInstanceOf($constraint, TranslationForExistingLocales::class); diff --git a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php index 28d272216d2..84cac89ba21 100644 --- a/src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php +++ b/src/Sylius/Bundle/CoreBundle/Validator/Constraints/UniqueReviewerEmailValidator.php @@ -31,7 +31,7 @@ public function __construct( ) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var UniqueReviewerEmail $constraint */ Assert::isInstanceOf($constraint, UniqueReviewerEmail::class); diff --git a/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php b/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php index d4707c20c98..82494b1f7ed 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php +++ b/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/DifferentSourceTargetCurrencyValidator.php @@ -21,7 +21,7 @@ class DifferentSourceTargetCurrencyValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { /** @var DifferentSourceTargetCurrency $constraint */ Assert::isInstanceOf($constraint, DifferentSourceTargetCurrency::class); diff --git a/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php b/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php index f5030639adf..615640143a1 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php +++ b/src/Sylius/Bundle/CurrencyBundle/Validator/Constraints/UniqueCurrencyPairValidator.php @@ -27,7 +27,7 @@ public function __construct(private ExchangeRateRepositoryInterface $exchangeRat { } - public function validate($value, Constraint $constraint) + public function validate(mixed $value, Constraint $constraint): void { /** @var UniqueCurrencyPair $constraint */ Assert::isInstanceOf($constraint, UniqueCurrencyPair::class); diff --git a/src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStockValidator.php b/src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStockValidator.php index 05468bdba10..c7eab0a9fb7 100644 --- a/src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStockValidator.php +++ b/src/Sylius/Bundle/InventoryBundle/Validator/Constraints/InStockValidator.php @@ -30,7 +30,7 @@ public function __construct(private AvailabilityCheckerInterface $availabilityCh $this->accessor = PropertyAccess::createPropertyAccessor(); } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var InStock $constraint */ Assert::isInstanceOf($constraint, InStock::class); diff --git a/src/Sylius/Bundle/ProductBundle/Validator/ProductVariantCombinationValidator.php b/src/Sylius/Bundle/ProductBundle/Validator/ProductVariantCombinationValidator.php index f576c0147cd..58bb5dcd593 100644 --- a/src/Sylius/Bundle/ProductBundle/Validator/ProductVariantCombinationValidator.php +++ b/src/Sylius/Bundle/ProductBundle/Validator/ProductVariantCombinationValidator.php @@ -27,7 +27,7 @@ public function __construct(private ProductVariantsParityCheckerInterface $varia { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var ProductVariantCombination $constraint */ Assert::isInstanceOf($constraint, ProductVariantCombination::class); diff --git a/src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php b/src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php index dbc3375197a..96252abc1e7 100644 --- a/src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php +++ b/src/Sylius/Bundle/ProductBundle/Validator/UniqueSimpleProductCodeValidator.php @@ -28,7 +28,7 @@ public function __construct(private ProductVariantRepositoryInterface $productVa { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var UniqueSimpleProductCode $constraint */ Assert::isInstanceOf($constraint, UniqueSimpleProductCode::class); diff --git a/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php b/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php index 5ee289cc1d4..f5f9b814989 100644 --- a/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php +++ b/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionActionValidator.php @@ -29,7 +29,7 @@ public function __construct(private array $actionTypes, iterable $actionValidato $this->actionValidators = $actionValidators instanceof \Traversable ? iterator_to_array($actionValidators) : $actionValidators; } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var CatalogPromotionAction $constraint */ Assert::isInstanceOf($constraint, CatalogPromotionAction::class); diff --git a/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php b/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php index b0839348488..f80f656a039 100644 --- a/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php +++ b/src/Sylius/Bundle/PromotionBundle/Validator/CatalogPromotionScopeValidator.php @@ -29,7 +29,7 @@ public function __construct(private array $scopeTypes, iterable $scopeValidators $this->scopeValidators = $scopeValidators instanceof \Traversable ? iterator_to_array($scopeValidators) : $scopeValidators; } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var CatalogPromotionScope $constraint */ Assert::isInstanceOf($constraint, CatalogPromotionScope::class); diff --git a/src/Sylius/Bundle/PromotionBundle/Validator/CouponGenerationAmountValidator.php b/src/Sylius/Bundle/PromotionBundle/Validator/CouponGenerationAmountValidator.php index 1216e208e50..e2fa5bace9b 100644 --- a/src/Sylius/Bundle/PromotionBundle/Validator/CouponGenerationAmountValidator.php +++ b/src/Sylius/Bundle/PromotionBundle/Validator/CouponGenerationAmountValidator.php @@ -26,7 +26,7 @@ public function __construct(private GenerationPolicyInterface $generationPolicy) { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (null === $value->getCodeLength() || null === $value->getAmount()) { return; diff --git a/src/Sylius/Bundle/PromotionBundle/Validator/PromotionDateRangeValidator.php b/src/Sylius/Bundle/PromotionBundle/Validator/PromotionDateRangeValidator.php index ea2076d7060..7755b9a1b3c 100644 --- a/src/Sylius/Bundle/PromotionBundle/Validator/PromotionDateRangeValidator.php +++ b/src/Sylius/Bundle/PromotionBundle/Validator/PromotionDateRangeValidator.php @@ -21,7 +21,7 @@ final class PromotionDateRangeValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (null === $value) { return; diff --git a/src/Sylius/Bundle/PromotionBundle/Validator/PromotionSubjectCouponValidator.php b/src/Sylius/Bundle/PromotionBundle/Validator/PromotionSubjectCouponValidator.php index 46abbb9a590..2335c9d0429 100644 --- a/src/Sylius/Bundle/PromotionBundle/Validator/PromotionSubjectCouponValidator.php +++ b/src/Sylius/Bundle/PromotionBundle/Validator/PromotionSubjectCouponValidator.php @@ -26,7 +26,7 @@ public function __construct(private PromotionEligibilityCheckerInterface $promot { } - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { /** @var PromotionSubjectCoupon $constraint */ Assert::isInstanceOf($constraint, PromotionSubjectCoupon::class);