From 7b931b8348612d7967fc20a33e57aa1dd9fc36c4 Mon Sep 17 00:00:00 2001 From: Jan Goralski Date: Tue, 5 Dec 2023 12:48:40 +0100 Subject: [PATCH] [DX] Ignore missing return of `getId` model methods and update baseline --- phpstan-baseline.neon | 360 ++---------------------------------------- phpstan.neon.dist | 1 + 2 files changed, 11 insertions(+), 350 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index a297a6a23bb..7ac7b072ca1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1890,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 @@ -1905,11 +1900,6 @@ 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\\\\AdminResetPasswordTokenNonExpiredValidator\\:\\:__construct\\(\\) has parameter \\$adminUserRepository with generic interface Sylius\\\\Component\\\\User\\\\Repository\\\\UserRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1920,11 +1910,6 @@ parameters: 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\\\\ChosenPaymentMethodEligibilityValidator\\:\\:__construct\\(\\) has parameter \\$paymentMethodRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\PaymentMethodRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1955,11 +1940,6 @@ parameters: 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\\\\OrderNotEmptyValidator\\:\\:__construct\\(\\) has parameter \\$orderRepository with generic interface Sylius\\\\Component\\\\Core\\\\Repository\\\\OrderRepositoryInterface but does not specify its types\\: T$#" count: 1 @@ -1980,11 +1960,6 @@ parameters: 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 @@ -2005,11 +1980,6 @@ parameters: 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 @@ -2145,6 +2115,11 @@ parameters: count: 1 path: src/Sylius/Bundle/CoreBundle/CatalogPromotion/Checker/InForTaxonsScopeVariantChecker.php + - + message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\CatalogPromotion\\\\Checker\\\\ProductVariantForCatalogPromotionEligibility\\:\\:__construct\\(\\) has parameter \\$locator with generic class Symfony\\\\Component\\\\DependencyInjection\\\\ServiceLocator but does not specify its types\\: T$#" + count: 1 + path: src/Sylius/Bundle/CoreBundle/CatalogPromotion/Checker/ProductVariantForCatalogPromotionEligibility.php + - message: "#^Method Sylius\\\\Bundle\\\\CoreBundle\\\\CatalogPromotion\\\\Command\\\\ApplyCatalogPromotionsOnVariants\\:\\:__construct\\(\\) has parameter \\$variantsCodes with no value type specified in iterable type array\\.$#" count: 1 @@ -4145,21 +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\\\\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\\\\CustomerBundle\\\\Doctrine\\\\ORM\\\\CustomerGroupRepository\\:\\:findByPhrase\\(\\) return type has no value type specified in iterable type iterable\\.$#" count: 1 @@ -5265,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 @@ -5320,31 +5290,6 @@ parameters: count: 1 path: src/Sylius/Component/Addressing/Factory/ZoneFactoryInterface.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 @@ -5425,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 @@ -5445,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 @@ -5530,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 @@ -5750,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 @@ -5765,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 @@ -5815,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 @@ -6520,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 @@ -6565,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 @@ -6615,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 @@ -6635,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 @@ -6705,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 @@ -6725,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 @@ -6840,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 @@ -6975,21 +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: "#^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 @@ -7015,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 @@ -7040,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 @@ -7075,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 @@ -7100,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 @@ -7130,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 @@ -7170,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 @@ -7220,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 @@ -7235,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 @@ -7250,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 @@ -7285,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 @@ -7315,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 @@ -7335,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./'