diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1d4d1c83..94a8c712 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -180,11 +180,6 @@ parameters: count: 1 path: Controller/DynamicController.php - - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Controller\\\\DynamicController\\:\\:getLocale\\(\\) should return string\\|null but returns mixed\\.$#" - count: 1 - path: Controller/DynamicController.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Controller\\\\DynamicController\\:\\:loadForm\\(\\) should return Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\Form but returns Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\Form\\|null\\.$#" count: 1 @@ -205,41 +200,6 @@ parameters: count: 1 path: Controller/DynamicController.php - - - message: "#^Parameter \\#2 \\$locale of method Sulu\\\\Bundle\\\\FormBundle\\\\ListBuilder\\\\DynamicListFactory\\:\\:build\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#2 \\$sort of method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\DynamicRepository\\:\\:findByFilters\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#3 \\$limit of method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\DynamicRepository\\:\\:findByFilters\\(\\) expects int\\|null, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#3 \\$route of class Sulu\\\\Component\\\\Rest\\\\ListBuilder\\\\ListRepresentation constructor expects string, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#5 \\$page of class Sulu\\\\Component\\\\Rest\\\\ListBuilder\\\\ListRepresentation constructor expects int, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - - - message: "#^Parameter \\#6 \\$limit of class Sulu\\\\Component\\\\Rest\\\\ListBuilder\\\\ListRepresentation constructor expects int, mixed given\\.$#" - count: 1 - path: Controller/DynamicController.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -370,11 +330,6 @@ parameters: count: 1 path: DependencyInjection/CompilerPass/RemoveTaggedServiceCollectorCompilerPass.php - - - message: "#^Call to function array_key_exists\\(\\) with 'SuluArticleBundle' and array\\{FrameworkBundle\\: string, TwigBundle\\: string, SuluCoreBundle\\: string, DoctrineBundle\\: string, DoctrinePHPCRBundle\\: string, PhpcrMigrationsBundle\\: string, StofDoctrineExtensionsBundle\\: string, JMSSerializerBundle\\: string, \\.\\.\\.\\} will always evaluate to false\\.$#" - count: 1 - path: DependencyInjection/SuluFormExtension.php - - message: "#^Cannot access offset 'helper' on mixed\\.$#" count: 1 @@ -435,11 +390,6 @@ parameters: count: 1 path: Dynamic/Helper/SendinblueMailTemplateSelect.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/AttachmentType.php - - message: "#^Cannot call method getOption\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 4 @@ -450,11 +400,6 @@ parameters: count: 1 path: Dynamic/Types/AttachmentType.php - - - message: "#^Cannot access offset 'placeholder' on mixed\\.$#" - count: 3 - path: Dynamic/Types/CheckboxMultipleType.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 @@ -490,11 +435,6 @@ parameters: count: 1 path: Dynamic/Types/CheckboxMultipleType.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/CheckboxType.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 @@ -505,26 +445,11 @@ parameters: count: 1 path: Dynamic/Types/CompanyType.php - - - message: "#^Cannot access offset 'placeholder' on mixed\\.$#" - count: 3 - path: Dynamic/Types/CountryType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/CountryType.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 path: Dynamic/Types/DateType.php - - - message: "#^Cannot access offset 'placeholder' on mixed\\.$#" - count: 3 - path: Dynamic/Types/DropdownMultiple.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 @@ -560,16 +485,6 @@ parameters: count: 1 path: Dynamic/Types/DropdownMultiple.php - - - message: "#^Cannot access offset 'placeholder' on mixed\\.$#" - count: 3 - path: Dynamic/Types/DropdownType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/DropdownType.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Types\\\\DropdownType\\:\\:getDefaultOptions\\(\\) should return array\\ but returns array\\\\|false\\.$#" count: 1 @@ -600,61 +515,11 @@ parameters: count: 1 path: Dynamic/Types/EmailType.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/EmailType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/FaxType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/FirstNameType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/FreeTextType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/FunctionType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/HeadlineType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/LastNameType.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 path: Dynamic/Types/MailchimpType.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/PhoneType.php - - - - message: "#^Cannot access offset 'placeholder' on mixed\\.$#" - count: 3 - path: Dynamic/Types/RadioButtonsType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/RadioButtonsType.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Types\\\\RadioButtonsType\\:\\:getDefaultOptions\\(\\) should return array\\ but returns array\\\\|false\\.$#" count: 1 @@ -680,56 +545,11 @@ parameters: count: 1 path: Dynamic/Types/RadioButtonsType.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/RecaptchaType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/SalutationType.php - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" count: 1 path: Dynamic/Types/SendinblueType.php - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/SpacerType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/StateType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/StreetType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/TextType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/TextareaType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/TitleType.php - - - - message: "#^Cannot call method getDefaultValue\\(\\) on Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\FormFieldTranslation\\|null\\.$#" - count: 1 - path: Dynamic/Types/ZipType.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\Dynamic\\:\\:getAttachment\\(\\) should return array\\\\|null but returns mixed\\.$#" count: 1 @@ -990,11 +810,6 @@ parameters: count: 1 path: Event/ProtectedMediaSubscriber.php - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, mixed given\\.$#" - count: 1 - path: Event/ProtectedMediaSubscriber.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" count: 1 @@ -1060,31 +875,6 @@ parameters: count: 1 path: Event/SendinblueListSubscriber.php - - - message: "#^Cannot access offset 'checksum' on array\\|bool\\|float\\|int\\|string\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Cannot access offset 'formId' on array\\|bool\\|float\\|int\\|string\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Cannot access offset 'formName' on array\\|bool\\|float\\|int\\|string\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Cannot access offset 'type' on array\\|bool\\|float\\|int\\|string\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Cannot access offset 'typeId' on array\\|bool\\|float\\|int\\|string\\.$#" - count: 1 - path: Form/Builder.php - - message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\HttpFoundation\\\\Request\\|null\\.$#" count: 3 @@ -1100,36 +890,6 @@ parameters: count: 1 path: Form/Builder.php - - - message: "#^Parameter \\#1 \\$checksum of method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Checksum\\:\\:check\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Parameter \\#2 \\$type of method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Checksum\\:\\:check\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Parameter \\#2 \\$type of method Sulu\\\\Bundle\\\\FormBundle\\\\Form\\\\Builder\\:\\:build\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Parameter \\#3 \\$typeId of method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Checksum\\:\\:check\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Parameter \\#4 \\$formId of method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Checksum\\:\\:check\\(\\) expects int, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - - - message: "#^Parameter \\#5 \\$formName of method Sulu\\\\Bundle\\\\FormBundle\\\\Dynamic\\\\Checksum\\:\\:check\\(\\) expects string, mixed given\\.$#" - count: 1 - path: Form/Builder.php - - message: "#^Parameter \\#6 \\$webspaceKey of method Sulu\\\\Bundle\\\\FormBundle\\\\Form\\\\Builder\\:\\:createForm\\(\\) expects string, string\\|null given\\.$#" count: 1 @@ -1140,11 +900,6 @@ parameters: count: 1 path: Form/Builder.php - - - message: "#^Cannot call method getData\\(\\) on Symfony\\\\Component\\\\Form\\\\FormInterface\\|null\\.$#" - count: 4 - path: Form/Handler.php - - message: "#^Parameter \\#1 \\$object of method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:persist\\(\\) expects object, mixed given\\.$#" count: 1 @@ -1165,16 +920,6 @@ parameters: count: 1 path: Form/Handler.php - - - message: "#^Parameter \\#4 \\$collectionId of method Sulu\\\\Bundle\\\\FormBundle\\\\Form\\\\Handler\\:\\:getMediaData\\(\\) expects int, mixed given\\.$#" - count: 1 - path: Form/Handler.php - - - - message: "#^Cannot access offset string on mixed\\.$#" - count: 2 - path: Form/Type/AbstractType.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Form\\\\Type\\\\AbstractType\\:\\:getBlockPrefix\\(\\) should return string but returns string\\|null\\.$#" count: 1 @@ -1690,26 +1435,11 @@ parameters: count: 1 path: Metadata/PropertiesXmlLoader.php - - - message: "#^Cannot cast mixed to int\\.$#" - count: 1 - path: Repository/DynamicRepository.php - - - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\DynamicRepository\\:\\:findByFilters\\(\\) should return array but returns mixed\\.$#" - count: 1 - path: Repository/DynamicRepository.php - - message: "#^Parameter \\#2 \\$fromDate of method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\DynamicRepository\\:\\:addDateRangeFilter\\(\\) expects string\\|null, mixed given\\.$#" count: 1 path: Repository/DynamicRepository.php - - - message: "#^Cannot cast mixed to int\\.$#" - count: 1 - path: Repository/FormRepository.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\FormRepository\\:\\:getValue\\(\\) should return int\\|null but returns mixed\\.$#" count: 2