diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 458a8bb0..b9bff497 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -31,7 +31,7 @@ jobs: database: mysql dependency-versions: 'highest' tools: 'composer:v2' - lint: true + lint: false env: SYMFONY_DEPRECATIONS_HELPER: weak DATABASE_URL: mysql://root:root@127.0.0.1/sulu_form_test?serverVersion=5.7 @@ -45,7 +45,18 @@ jobs: lint: true env: SYMFONY_DEPRECATIONS_HELPER: weak - DATABASE_URL: mysql://root:root@127.0.0.1/sulu_form_test?serverVersion=8.0 + DATABASE_URL: mysql://root:root@127.0.0.1/sulu_form_test?serverVersion=5.7 + DATABASE_CHARSET: utf8mb4 + DATABASE_COLLATE: utf8mb4_unicode_ci + + - php-version: '8.1' + database: mysql + dependency-versions: 'highest' + tools: 'composer:v2' + lint: false + env: + SYMFONY_DEPRECATIONS_HELPER: weak + DATABASE_URL: mysql://root:root@127.0.0.1/sulu_form_test?serverVersion=5.7 DATABASE_CHARSET: utf8mb4 DATABASE_COLLATE: utf8mb4_unicode_ci diff --git a/Dynamic/Helper/SendinblueListSelect.php b/Dynamic/Helper/SendinblueListSelect.php index cff060b3..2e0cc7c5 100644 --- a/Dynamic/Helper/SendinblueListSelect.php +++ b/Dynamic/Helper/SendinblueListSelect.php @@ -16,6 +16,7 @@ /** * @final + * * @internal */ class SendinblueListSelect diff --git a/Dynamic/Helper/SendinblueMailTemplateSelect.php b/Dynamic/Helper/SendinblueMailTemplateSelect.php index c4a4f950..09df4564 100644 --- a/Dynamic/Helper/SendinblueMailTemplateSelect.php +++ b/Dynamic/Helper/SendinblueMailTemplateSelect.php @@ -16,6 +16,7 @@ /** * @final + * * @internal */ class SendinblueMailTemplateSelect diff --git a/Event/SendinblueListSubscriber.php b/Event/SendinblueListSubscriber.php index a0d9e2c8..ef3cf947 100644 --- a/Event/SendinblueListSubscriber.php +++ b/Event/SendinblueListSubscriber.php @@ -20,6 +20,7 @@ /** * @final + * * @internal */ class SendinblueListSubscriber implements EventSubscriberInterface diff --git a/composer.json b/composer.json index f617a8df..ab378fc6 100644 --- a/composer.json +++ b/composer.json @@ -127,6 +127,9 @@ "preferred-install": { "*": "dist" }, - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "composer/package-versions-deprecated": true + } } } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 27f7d87f..6eb1ff03 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -425,6 +425,46 @@ parameters: count: 1 path: Dynamic/Helper/MailchimpListSelect.php + - + message: "#^Cannot access offset 'id' on object\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueListSelect.php + + - + message: "#^Cannot access offset 'name' on object\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueListSelect.php + + - + message: "#^Parameter \\#2 \\$key of method SendinBlue\\\\Client\\\\Configuration\\:\\:setApiKey\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueListSelect.php + + - + message: "#^Cannot assign offset 'tag' to SendinBlue\\\\Client\\\\Model\\\\GetSmtpTemplateOverview\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueMailTemplateSelect.php + + - + message: "#^Offset 'tag' on SendinBlue\\\\Client\\\\Model\\\\GetSmtpTemplateOverview on left side of \\?\\? does not exist\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueMailTemplateSelect.php + + - + message: "#^Parameter \\#1 \\$templateStatus of method SendinBlue\\\\Client\\\\Api\\\\TransactionalEmailsApi\\:\\:getSmtpTemplates\\(\\) expects bool\\|null, string given\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueMailTemplateSelect.php + + - + message: "#^Parameter \\#2 \\$key of method SendinBlue\\\\Client\\\\Configuration\\:\\:setApiKey\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueMailTemplateSelect.php + + - + message: "#^Unreachable statement \\- code above always terminates\\.$#" + count: 1 + path: Dynamic/Helper/SendinblueMailTemplateSelect.php + - message: "#^Cannot access an offset on mixed\\.$#" count: 2 @@ -710,6 +750,11 @@ parameters: 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 access offset 'type' on mixed\\.$#" count: 1 @@ -1021,9 +1066,39 @@ parameters: path: Event/RequestListener.php - - message: "#^Array \\(array\\\\) does not accept Symfony\\\\Component\\\\Form\\\\FormInterface\\|null\\.$#" + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" count: 1 - path: Form/Builder.php + path: Event/SendinblueListSubscriber.php + + - + message: "#^Cannot access offset 'listId' on mixed\\.$#" + count: 1 + path: Event/SendinblueListSubscriber.php + + - + message: "#^Cannot access offset 'mailTemplateId' on mixed\\.$#" + count: 1 + path: Event/SendinblueListSubscriber.php + + - + message: "#^Cannot access offset 'options' on mixed\\.$#" + count: 2 + path: Event/SendinblueListSubscriber.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 4 + path: Event/SendinblueListSubscriber.php + + - + message: "#^Cannot access offset 'value' on mixed\\.$#" + count: 4 + path: Event/SendinblueListSubscriber.php + + - + message: "#^Parameter \\#2 \\$key of method SendinBlue\\\\Client\\\\Configuration\\:\\:setApiKey\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: Event/SendinblueListSubscriber.php - message: "#^Cannot access offset 'checksum' on array\\|bool\\|float\\|int\\|string\\.$#" @@ -1120,6 +1195,11 @@ parameters: count: 1 path: Form/Builder.php + - + message: "#^Property Sulu\\\\Bundle\\\\FormBundle\\\\Form\\\\Builder\\:\\:\\$cache \\(array\\\\) does not accept array\\\\.$#" + count: 1 + path: Form/Builder.php + - message: "#^Parameter \\#1 \\$object of method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:persist\\(\\) expects object, mixed given\\.$#" count: 1 @@ -1635,11 +1715,6 @@ parameters: 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 @@ -1670,11 +1745,6 @@ parameters: count: 2 path: Repository/FormRepository.php - - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\FormRepository\\:\\:loadAll\\(\\) should return array\\ but returns mixed\\.$#" - count: 1 - path: Repository/FormRepository.php - - message: "#^Method Sulu\\\\Bundle\\\\FormBundle\\\\Repository\\\\FormRepository\\:\\:loadById\\(\\) should return Sulu\\\\Bundle\\\\FormBundle\\\\Entity\\\\Form\\|null but returns mixed\\.$#" count: 1 diff --git a/phpstan.neon b/phpstan.neon index f47adc4c..8ca31edc 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,4 +1,5 @@ includes: + - phpstan-baseline.neon - vendor/jangregor/phpstan-prophecy/extension.neon - vendor/phpstan/phpstan-doctrine/extension.neon - vendor/phpstan/phpstan-doctrine/rules.neon