diff --git a/lib/Tasks/Subscribers/BatchIterator.php b/lib/Tasks/Subscribers/BatchIterator.php index e85737b18a..aeca9fe4c6 100644 --- a/lib/Tasks/Subscribers/BatchIterator.php +++ b/lib/Tasks/Subscribers/BatchIterator.php @@ -26,7 +26,7 @@ class BatchIterator implements \Iterator, \Countable { $this->batchSize = (int)$batchSize; } - public function rewind() { + public function rewind(): void { $this->lastProcessedId = 0; } @@ -44,15 +44,15 @@ class BatchIterator implements \Iterator, \Countable { return null; } - public function next() { + public function next(): void { $this->lastProcessedId = $this->batchLastId; } - public function valid() { + public function valid(): bool { return $this->count() > 0; } - public function count() { + public function count(): int { return $this->getSubscribers()->count(); } diff --git a/tasks/phpstan/composer.json b/tasks/phpstan/composer.json index 9386244584..4d43984f52 100644 --- a/tasks/phpstan/composer.json +++ b/tasks/phpstan/composer.json @@ -1,10 +1,10 @@ { "require": { "php-stubs/woocommerce-stubs": "^5.8", - "phpstan/phpstan": "0.12.99", - "phpstan/phpstan-doctrine": "0.12.44", - "phpstan/phpstan-phpunit": "0.12.22", - "szepeviktor/phpstan-wordpress": "^0.7.7" + "phpstan/phpstan": "1.2.0", + "phpstan/phpstan-doctrine": "1.0.2", + "phpstan/phpstan-phpunit": "1.0.0", + "szepeviktor/phpstan-wordpress": "1.0.2" }, "autoload": { "psr-4": { @@ -15,7 +15,14 @@ "sort-packages": true }, "scripts": { - "post-install-cmd": "php prefix-phpstan-doctrine.php", - "post-update-cmd": "php prefix-phpstan-doctrine.php" + "post-install-cmd": [ + "php prefix-phpstan-doctrine.php", + "php fix-WPStubs-for-PHP-8_1.php" + + ], + "post-update-cmd": [ + "php prefix-phpstan-doctrine.php", + "php fix-WPStubs-for-PHP-8_1.php" + ] } } diff --git a/tasks/phpstan/composer.lock b/tasks/phpstan/composer.lock index e219ace7b8..8f0836889d 100644 --- a/tasks/phpstan/composer.lock +++ b/tasks/phpstan/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d50d0f174a8f5174aae12bf0bf03e954", + "content-hash": "d1001ca07b73790fffa8fd9c59908da8", "packages": [ { "name": "php-stubs/woocommerce-stubs", - "version": "v5.8.0", + "version": "v5.9.0", "source": { "type": "git", "url": "https://github.com/php-stubs/woocommerce-stubs.git", - "reference": "e3978c519fb1e51585e8c86b489b802aa0c64cee" + "reference": "a7204cfbb5fa90720773122cb68530087de5bc78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/e3978c519fb1e51585e8c86b489b802aa0c64cee", - "reference": "e3978c519fb1e51585e8c86b489b802aa0c64cee", + "url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/a7204cfbb5fa90720773122cb68530087de5bc78", + "reference": "a7204cfbb5fa90720773122cb68530087de5bc78", "shasum": "" }, "require": { @@ -46,22 +46,22 @@ ], "support": { "issues": "https://github.com/php-stubs/woocommerce-stubs/issues", - "source": "https://github.com/php-stubs/woocommerce-stubs/tree/v5.8.0" + "source": "https://github.com/php-stubs/woocommerce-stubs/tree/v5.9.0" }, - "time": "2021-10-15T14:13:09+00:00" + "time": "2021-11-05T10:02:27+00:00" }, { "name": "php-stubs/wordpress-stubs", - "version": "v5.8.1", + "version": "v5.8.2", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "8b333464d3183bccde2fdbb814e3cae592434943" + "reference": "67fd773742b7be5b4463f40318b0b4890a07033b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/8b333464d3183bccde2fdbb814e3cae592434943", - "reference": "8b333464d3183bccde2fdbb814e3cae592434943", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/67fd773742b7be5b4463f40318b0b4890a07033b", + "reference": "67fd773742b7be5b4463f40318b0b4890a07033b", "shasum": "" }, "replace": { @@ -90,22 +90,22 @@ ], "support": { "issues": "https://github.com/php-stubs/wordpress-stubs/issues", - "source": "https://github.com/php-stubs/wordpress-stubs/tree/v5.8.1" + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v5.8.2" }, - "time": "2021-09-09T22:10:19+00:00" + "time": "2021-11-11T13:57:00+00:00" }, { "name": "phpstan/phpstan", - "version": "0.12.99", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7" + "reference": "cbe085f9fdead5b6d62e4c022ca52dc9427a10ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b4d40f1d759942f523be267a1bab6884f46ca3f7", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cbe085f9fdead5b6d62e4c022ca52dc9427a10ee", + "reference": "cbe085f9fdead5b6d62e4c022ca52dc9427a10ee", "shasum": "" }, "require": { @@ -121,7 +121,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.12-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -136,7 +136,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/0.12.99" + "source": "https://github.com/phpstan/phpstan/tree/1.2.0" }, "funding": [ { @@ -156,25 +156,25 @@ "type": "tidelift" } ], - "time": "2021-09-12T20:09:55+00:00" + "time": "2021-11-18T14:09:01+00:00" }, { "name": "phpstan/phpstan-doctrine", - "version": "0.12.44", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-doctrine.git", - "reference": "5fe9a9b15707d9bc5178fa7cf0899e904d112ccd" + "reference": "8805ca71119c736606be39ad6284a0cfddb89127" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/5fe9a9b15707d9bc5178fa7cf0899e904d112ccd", - "reference": "5fe9a9b15707d9bc5178fa7cf0899e904d112ccd", + "url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/8805ca71119c736606be39ad6284a0cfddb89127", + "reference": "8805ca71119c736606be39ad6284a0cfddb89127", "shasum": "" }, "require": { "php": "^7.1 || ^8.0", - "phpstan/phpstan": "^0.12.85" + "phpstan/phpstan": "^1.0" }, "conflict": { "doctrine/collections": "<1.0", @@ -192,16 +192,17 @@ "doctrine/orm": "^2.9.1", "doctrine/persistence": "^1.1 || ^2.0", "nesbot/carbon": "^2.49", + "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-phpunit": "^0.12.16", - "phpstan/phpstan-strict-rules": "^0.12.5", + "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "ramsey/uuid-doctrine": "^1.5.0" }, "type": "phpstan-extension", "extra": { "branch-alias": { - "dev-master": "0.12-dev" + "dev-master": "1.0-dev" }, "phpstan": { "includes": [ @@ -222,40 +223,41 @@ "description": "Doctrine extensions for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-doctrine/issues", - "source": "https://github.com/phpstan/phpstan-doctrine/tree/0.12.44" + "source": "https://github.com/phpstan/phpstan-doctrine/tree/1.0.2" }, - "time": "2021-09-01T06:46:16+00:00" + "time": "2021-11-24T08:26:25+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "0.12.22", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "7c01ef93bf128b4ac8bdad38c54b2a4fd6b0b3cc" + "reference": "9eb88c9f689003a8a2a5ae9e010338ee94dc39b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/7c01ef93bf128b4ac8bdad38c54b2a4fd6b0b3cc", - "reference": "7c01ef93bf128b4ac8bdad38c54b2a4fd6b0b3cc", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/9eb88c9f689003a8a2a5ae9e010338ee94dc39b3", + "reference": "9eb88c9f689003a8a2a5ae9e010338ee94dc39b3", "shasum": "" }, "require": { "php": "^7.1 || ^8.0", - "phpstan/phpstan": "^0.12.92" + "phpstan/phpstan": "^1.0" }, "conflict": { "phpunit/phpunit": "<7.0" }, "require-dev": { + "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-strict-rules": "^0.12.6", + "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5" }, "type": "phpstan-extension", "extra": { "branch-alias": { - "dev-master": "0.12-dev" + "dev-master": "1.0-dev" }, "phpstan": { "includes": [ @@ -276,22 +278,22 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.22" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.0.0" }, - "time": "2021-08-12T10:53:43+00:00" + "time": "2021-10-14T08:03:54+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.23.0", + "version": "v1.24.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010" + "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010", - "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5", + "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5", "shasum": "" }, "require": { @@ -341,7 +343,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.24.0" }, "funding": [ { @@ -357,33 +359,34 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2021-06-05T21:20:04+00:00" }, { "name": "szepeviktor/phpstan-wordpress", - "version": "v0.7.7", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/szepeviktor/phpstan-wordpress.git", - "reference": "bdbea69b2ba4a69998c3b6fe2b7106d78a23bd72" + "reference": "d44b5abcaa529698e138b2d21bc2a7cf9834039c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/bdbea69b2ba4a69998c3b6fe2b7106d78a23bd72", - "reference": "bdbea69b2ba4a69998c3b6fe2b7106d78a23bd72", + "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/d44b5abcaa529698e138b2d21bc2a7cf9834039c", + "reference": "d44b5abcaa529698e138b2d21bc2a7cf9834039c", "shasum": "" }, "require": { "php": "^7.1 || ^8.0", "php-stubs/wordpress-stubs": "^4.7 || ^5.0", - "phpstan/phpstan": "^0.12.26", + "phpstan/phpstan": "^1.0", "symfony/polyfill-php73": "^1.12.0" }, "require-dev": { - "composer/composer": "^1.10.22", + "composer/composer": "^1.10.23", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "php-parallel-lint/php-parallel-lint": "^1.1", - "phpstan/phpstan-strict-rules": "^0.12", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^7 || ^9", "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6" }, "type": "phpstan-extension", @@ -413,7 +416,7 @@ ], "support": { "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", - "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v0.7.7" + "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.0.2" }, "funding": [ { @@ -421,7 +424,7 @@ "type": "custom" } ], - "time": "2021-07-14T09:19:15+00:00" + "time": "2021-11-19T12:47:11+00:00" } ], "packages-dev": [], diff --git a/tasks/phpstan/fix-WPStubs-for-PHP-8_1.php b/tasks/phpstan/fix-WPStubs-for-PHP-8_1.php new file mode 100644 index 0000000000..a0c9de8947 --- /dev/null +++ b/tasks/phpstan/fix-WPStubs-for-PHP-8_1.php @@ -0,0 +1,21 @@ + but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/StatsNotifications/StatsNotificationsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/SubscribersLastEngagement.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/WooCommerceSync.php + + - + message: "#^Cannot call method get\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/DI/ContainerConfigurator.php + + - + message: "#^Method MailPoet\\\\DI\\\\ContainerWrapper\\:\\:get\\(\\) should return T but returns object&T\\.$#" + count: 2 + path: ../../lib/DI/ContainerWrapper.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot use array destructuring on array\\\\|MailPoetVendor\\\\Doctrine\\\\ORM\\\\PersistentCollection\\.$#" + count: 1 + path: ../../lib/Doctrine/EventListeners/LastSubscribedAtListener.php + + - + message: "#^Dead catch \\- ReflectionException is never thrown in the try block\\.$#" + count: 1 + path: ../../lib/Doctrine/MetadataCache.php + + - + message: "#^Parameter \\#2 \\$isHit of class MailPoet\\\\Doctrine\\\\PSRCacheItem constructor expects bool, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRArrayCache.php + + - + message: "#^Parameter \\#2 \\$code of class MailPoet\\\\Doctrine\\\\PSRCacheInvalidArgumentException constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRMetadataCache.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 2 + path: ../../lib/Doctrine/TablePrefixMetadataFactory.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/BigIntType.php + + - + message: "#^Parameter \\#1 \\$date of static method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:instance\\(\\) expects DateTimeInterface, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/DateTimeTzToStringType.php + + - + message: "#^Parameter \\#1 \\$data of function is_serialized expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Parameter \\#1 \\$variable_representation of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonType.php + + - + message: "#^Parameter \\#1 \\$variable_representation of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/SerializedArrayType.php + + - + message: "#^Variable \\$filterData on left side of \\?\\? is never defined\\.$#" + count: 1 + path: ../../lib/Entities/DynamicSegmentFilterData.php + + - + message: "#^Method MailPoet\\\\Entities\\\\SegmentEntity\\:\\:getFiltersConnectOperator\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Entities/SegmentEntity.php + + - + message: "#^Variable \\$classes in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Form/Block/Paragraph.php + + - + message: "#^Method MailPoet\\\\Form\\\\DisplayFormInWPContent\\:\\:shouldDisplay\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Parameter \\#1 \\$postTypes of method MailPoet\\\\WP\\\\Functions\\:\\:isSingular\\(\\) expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkRestore\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkTrash\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:findAllNotDeleted\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Form/Listing/FormListingRepository.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/Form/Renderer.php + + - + message: "#^Cannot call method count\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot call method offset\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Listing\\\\ListingRepository\\:\\:getData\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Logging\\\\LogRepository\\:\\:getLogs\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Logging/LogRepository.php + + - + message: "#^Variable \\$mailer in empty\\(\\) is never defined\\.$#" + count: 1 + path: ../../lib/Mailer/MailerLog.php + + - + message: "#^Parameter \\#1 \\$timeout of method MailPoetVendor\\\\Swift_Transport_EsmtpTransport\\:\\:setTimeout\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#1 \\$transport of class MailPoetVendor\\\\Swift_Mailer constructor expects MailPoetVendor\\\\Swift_Transport, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#2 \\$code of class PHPMailer\\\\PHPMailer\\\\Exception constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/WordPress/WordPressMailer.php + + - + message: "#^Method MailPoet\\\\Models\\\\DynamicSegmentFilter\\:\\:__get\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Models/DynamicSegmentFilter.php + + - + message: "#^Parameter \\#2 \\$array of function implode expects array\\, array\\\\|string\\> given\\.$#" + count: 1 + path: ../../lib/Models/Subscriber.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Variable \\$terms in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot call method getMeta\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Editor\\\\PostTransformer\\:\\:\\$withLayout is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformer.php + + - + message: "#^Parameter \\#1 \\$str of function strip_tags expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformerContentsExtractor.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'newsletterCount' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Newsletter\\\\ApiDataSanitizer\\:\\:sanitizeBody\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'event' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 4 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findActiveByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findDraftByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findSendigNotificationHistoryWithPausedTask\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:getArchives\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findAutomaticEmailsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findWelcomeNotificationsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Renderer\\\\Renderer\\:\\:postProcessTemplate\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Renderer/Renderer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'segment_id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'subject' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndStatus\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndSubscriberId\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByScheduledAndRunningForNewsletter\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findPreviousTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledOrRunningTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findAllForSubscriberSentBetween\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findOneByNewsletterAndTaskStatus\\(\\) should return MailPoet\\\\Entities\\\\SendingQueueEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:processShortcodeAction\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 4 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'total' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 7 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Statistics\\\\NewsletterStatisticsRepository\\:\\:getStatisticsMachineOpenCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Else branch is unreachable because previous condition is always true\\.$#" + count: 1 + path: ../../lib/Newsletter/ViewInBrowser/ViewInBrowserRenderer.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Method MailPoet\\\\NewsletterTemplates\\\\NewsletterTemplatesRepository\\:\\:findAllForListing\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterTemplateEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Variable \\$thumbnailUrl on left side of \\?\\? always exists and is not nullable\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/ThumbnailSaver.php + + - + message: "#^Cannot access property \\$allowedActions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Cannot access property \\$permissions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Parameter \\#1 \\$object of function method_exists expects object\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\DynamicSegmentFilterRepository\\:\\:findOnyByFilterTypeAndAction\\(\\) should return MailPoet\\\\Entities\\\\DynamicSegmentFilterEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/DynamicSegmentFilterRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterDataMapper\\:\\:map\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/FilterDataMapper.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\CarbonImmutable\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountAction.php + + - + message: "#^Parameter \\#1 \\$search of static method MailPoet\\\\Util\\\\Helpers\\:\\:escapeSearch\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateEqual\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateYear\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberScore.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSegment.php + + - + message: "#^Parameter \\#2 \\$value of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\SubscriberSubscribedDate\\:\\:getDate\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSubscribedDate.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\UserRole\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/UserRole.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceCountry\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceNumberOfOrders.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceSubscription.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceTotalSpent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentListingRepository.php + + - + message: "#^Cannot access offset 'all' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersGlobalStatusStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersWithoutSegmentStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$y of method MailPoetVendor\\\\Doctrine\\\\DBAL\\\\Query\\\\Expression\\\\ExpressionBuilder\\:\\:notIn\\(\\) expects array\\\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:findByUpdatedScoreNotInLastDay\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:updateDeletedAt\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'subscribers' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsSimpleListRepository\\:\\:getList\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#1 \\$segmentId of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCountById\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/WP.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Method MailPoet\\\\Segments\\\\WooCommerce\\:\\:insertSubscriberFromOrder\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Parameter \\#1 \\$ch of function curl_errno expects resource, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$ch of function curl_error expects resource, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$ch of function curl_getinfo expects resource, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$smtp through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$web through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Method MailPoet\\\\Statistics\\\\StatisticsClicksRepository\\:\\:findLatestPerNewsletterBySubscriber\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsClicksRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsOpensRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimp\\:\\:getApiData\\(\\) should return array\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/Import/MailChimp.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Part \\$customField\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscribers/InactiveSubscribersController.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\Statistics\\\\SubscriberStatisticsRepository\\:\\:getTotalSentCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:findOneByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return MailPoet\\\\Entities\\\\SubscriberIPEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:getCountByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'subscribersCount' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getId\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getName\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method isStatic\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentGlobalStatusStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberSegmentRepository\\:\\:getNonDefaultSubscribedSegments\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberSegmentRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findByUpdatedScoreNotInLastMonth\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findExclusiveSubscribersBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdsOfDeletedByEmails\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findWpUserIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:getUndeletedSubscribersEmailsByIds\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$subscriber of class MailPoet\\\\Entities\\\\SubscriberSegmentEntity constructor expects MailPoet\\\\Entities\\\\SubscriberEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$arr1 of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$blocks of method MailPoet\\\\Form\\\\Renderer\\:\\:renderBlocks\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/ManageSubscriptionFormRenderer.php + + - + message: "#^Property MailPoet\\\\Subscription\\\\Pages\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Subscription/Pages.php + + - + message: "#^Parameter mixed of print cannot be converted to string\\.$#" + count: 1 + path: ../../lib/Subscription/Registration.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$arr1 of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$seconds of method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:deleteCreatedAtBeforeTimeInSeconds\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Cannot call method getDefinitions\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of function get_class expects object, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 4 + path: ../../lib/Util/ConflictResolver.php + + - + message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#" + count: 2 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^Part \\$sourceCollation \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^While loop condition is always true\\.$#" + count: 1 + path: ../../lib/Util/DOM.php + + - + message: "#^Method MailPoet\\\\Util\\\\ProgressBar\\:\\:readProgress\\(\\) should return array\\|false but returns mixed\\.$#" + count: 1 + path: ../../lib/Util/ProgressBar.php + + - + message: "#^PHPDoc type MailPoet\\\\Util\\\\pQuery\\\\DomNode\\|string of property MailPoet\\\\Util\\\\pQuery\\\\Html5Parser\\:\\:\\$root is not covariant with PHPDoc type MailPoetVendor\\\\pQuery\\\\DomNode of overridden property MailPoetVendor\\\\pQuery\\\\HtmlParser\\:\\:\\$root\\.$#" + count: 1 + path: ../../lib/Util/pQuery/Html5Parser.php + + - + message: "#^Method MailPoet\\\\WP\\\\Emoji\\:\\:sanitizeEmojisInFormBody\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Emoji.php + + - + message: "#^Method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Functions.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/WooCommerce/Helper.php + + - + message: "#^Parameter \\#1 \\(mixed\\) of echo cannot be converted to string\\.$#" + count: 1 + path: ../../lib/WooCommerce/Subscription.php + + - + message: "#^PHPDoc type MailPoet\\\\Segments\\\\DynamicSegments\\\\SegmentSaveController of property MailPoet\\\\Test\\\\DataFactories\\\\DynamicSegment\\:\\:\\$saveController is not covariant with PHPDoc type MailPoet\\\\Segments\\\\SegmentSaveController of overridden property MailPoet\\\\Test\\\\DataFactories\\\\Segment\\:\\:\\$saveController\\.$#" + count: 1 + path: ../../tests/DataFactories/DynamicSegment.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\FormEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Settings.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceCustomer\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceOrder\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Part \\$order\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceProduct\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method AcceptanceTester\\:\\:createPost\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#1 \\$str of function mb_strlen expects string, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Part \\$optionsContainer \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomCheckboxInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomDateInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomRadioButtonsInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomSelectInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextAreaInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextInputInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:openFormInEditor\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:saveCustomFieldBlock\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 2 + path: ../../tests/acceptance/Forms/EditorPlaceFormOnSpecifiedPageCest.php + + - + message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/EditorProductsCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\SendingStatusCest\\:\\:checkSubscriber\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/SendingStatusCest.php + + - + message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Segments/CreateSubscriberScoreSegmentCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/ReinstallFromScratchCest.php + + - + message: "#^Cannot access offset 'transactional_email…' on mixed\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$variable_representation of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/ManageSubscriptionLinkCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/SubscriberCookieCest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/API/JSON/v1/SendingQueueTest.php + + - + message: "#^Parameter \\#1 \\$needle of method Codeception\\\\Verify\\\\Verify\\:\\:stringContainsString\\(\\) expects string, mixed given\\.$#" + count: 4 + path: ../../tests/integration/API/JSON/v1/ServicesTest.php + + - + message: "#^Cannot access offset 'label' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'on_success' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'required' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'segments' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'success_message' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'validate' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 3 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 999 on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\TimestampEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/TimestampEntity.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\ValidatedEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/ValidatedEntity.php + + - + message: "#^Dead catch \\- MailPoet\\\\Doctrine\\\\Validator\\\\ValidationException is never thrown in the try block\\.$#" + count: 2 + path: ../../tests/integration/Doctrine/EventListeners/ValidationTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\Types\\\\JsonEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/Types/JsonEntity.php + + - + message: "#^Parameter \\#2 \\$array of function join expects array\\, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Parameter \\#2 \\$pieces of function join expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Cannot access offset 'List\\-Unsubscribe' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Mailer/Methods/SendGridTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Newsletter/Preview/SendPreviewControllerTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 8 + path: ../../tests/integration/Newsletter/RendererTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber1 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber2 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionClickAnyTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 18 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 15 + path: ../../tests/integration/Segments/DynamicSegments/Filters/MailPoetCustomFieldsTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 14 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberScoreTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSegmentTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSubscribedDateTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceCountryTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceTotalSpentTest\\:\\:\\$orders \\(array\\\\) on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Segments\\\\WPTest\\:\\:getSubscribersCount\\(\\) has parameter \\$a with no type specified\\.$#" + count: 1 + path: ../../tests/integration/Segments/WPTest.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot call method getSegments\\(\\) on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot access offset 'key1' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Cannot access offset 'key2' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Parameter \\#1 \\$jsonData of method MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:createExport\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Property MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:\\$jSONData \\(array\\) does not accept mixed\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" + count: 5 + path: ../../tests/integration/Subscribers/ImportExport/ImportExportFactoryTest.php + + - + message: "#^Part \\$table \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/integration/_bootstrap.php + diff --git a/tasks/phpstan/phpstan-8-baseline.neon b/tasks/phpstan/phpstan-8-baseline.neon new file mode 100644 index 0000000000..1b6241c7df --- /dev/null +++ b/tasks/phpstan/phpstan-8-baseline.neon @@ -0,0 +1,1967 @@ +parameters: + ignoreErrors: + - + message: "#^Cannot access property \\$permissions on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Cannot call method isMethodAllowed\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Property MailPoet\\\\API\\\\JSON\\\\ResponseBuilders\\\\DynamicSegmentsResponseBuilder\\:\\:\\$segmentSubscriberRepository is never read, only written\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/DynamicSegmentsResponseBuilder.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Parameter \\#4 \\$data of class MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\Export constructor expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/ImportExport.php + + - + message: "#^Parameter \\#6 \\$data of class MailPoet\\\\Subscribers\\\\ImportExport\\\\Import\\\\Import constructor expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/ImportExport.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Newsletter\\\\ApiDataSanitizer\\:\\:sanitizeBody\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/NewsletterTemplates.php + + - + message: "#^Cannot access offset 'preview_url' on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Parameter \\#1 \\$data of method MailPoet\\\\Newsletter\\\\NewsletterSaveController\\:\\:save\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Dead catch \\- MailPoet\\\\Doctrine\\\\Validator\\\\ValidationException is never thrown in the try block\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Segments.php + + - + message: "#^Property MailPoet\\\\API\\\\JSON\\\\v1\\\\Segments\\:\\:\\$wooCommerceSync is never read, only written\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Segments.php + + - + message: "#^Parameter \\#2 \\$code of class MailPoet\\\\API\\\\MP\\\\v1\\\\APIException constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/API/MP/v1/API.php + + - + message: "#^Method MailPoet\\\\Analytics\\\\Analytics\\:\\:generateAnalytics\\(\\) should return array\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Analytics/Analytics.php + + - + message: "#^Cannot access offset 'events' on mixed\\.$#" + count: 3 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Cannot access offset 'slug' on mixed\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$automaticEmail of method MailPoet\\\\AutomaticEmails\\\\AutomaticEmails\\:\\:validateAutomaticEmailDataFields\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$automaticEmailEvents of method MailPoet\\\\AutomaticEmails\\\\AutomaticEmails\\:\\:validateAutomaticEmailEventsDataFields\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/FirstPurchase.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/PurchasedInCategory.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/PurchasedProduct.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/Cache/TransientCache.php + + - + message: "#^Cannot call method getWrappedConnection\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Config/DatabaseInitializer.php + + - + message: "#^Cannot use array destructuring on array\\|true\\.$#" + count: 1 + path: ../../lib/Config/Env.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Config/Hooks.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'analytics' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'body' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'bounce_email' on mixed\\.$#" + count: 3 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform_linkname' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform_lists' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirm_dbleoptin' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirm_email_id' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirmation_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'emails_notified' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'field' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'from_email' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'from_name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'installed_time' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'lists' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'lists_selected_by' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'manage…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'on_success' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'params' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'position' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform_lists' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'replyto_email' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'replyto_name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_emails_each' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_emails…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_method' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'settings' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_auth' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_host' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_login' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_password' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_port' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_secure' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'subscriptions_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'success_message' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'unsubscribe_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^If condition is always false\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$emailId of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:getEmail\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$emailsNumber of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyEmails\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$intervalStr of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyInterval\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$mp2ListIds of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:getMappedSegmentIds\\(\\) expects array, mixed given\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$mp2Type of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldType\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$name of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldParams\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#2 \\$intervalStr of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyEmails\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#2 \\$params of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldParams\\(\\) expects array, mixed given\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$result in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$segment in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$subscriber in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access an offset on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'action' on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'category_id' on mixed\\.$#" + count: 4 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'category_ids' on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'operator' on mixed\\.$#" + count: 6 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'product_id' on mixed\\.$#" + count: 8 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'product_ids' on mixed\\.$#" + count: 6 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'segmentType' on mixed\\.$#" + count: 2 + path: ../../lib/Config/Migrator.php + + - + message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Call to an undefined method object\\:\\:get\\(\\)\\.$#" + count: 1 + path: ../../lib/Config/Populator.php + + - + message: "#^Parameter \\#2 \\$args of method MailPoet\\\\WP\\\\Functions\\:\\:wpRemotePost\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Cron/CronHelper.php + + - + message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Cron/CronHelper.php + + - + message: "#^Expression in empty\\(\\) is not falsy\\.$#" + count: 2 + path: ../../lib/Cron/CronWorkerRunner.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, class\\-string\\|false given\\.$#" + count: 1 + path: ../../lib/Cron/Daemon.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/Beamer.php + + - + message: "#^Cannot access offset 'processed' on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Cannot access offset 'to_process' on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Parameter \\#1 \\$array of function array_slice expects array, mixed given\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\SendingQueue\\\\SendingThrottlingHandler\\:\\:getMaxBatchSize\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/SendingQueue/SendingThrottlingHandler.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\StatsNotifications\\\\StatsNotificationsRepository\\:\\:findOneByNewsletterId\\(\\) should return MailPoet\\\\Entities\\\\StatsNotificationEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/StatsNotifications/StatsNotificationsRepository.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\StatsNotifications\\\\StatsNotificationsRepository\\:\\:findScheduled\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/StatsNotifications/StatsNotificationsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/SubscribersLastEngagement.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/WooCommerceSync.php + + - + message: "#^Cannot call method get\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/DI/ContainerConfigurator.php + + - + message: "#^Method MailPoet\\\\DI\\\\ContainerWrapper\\:\\:get\\(\\) should return T but returns object&T\\.$#" + count: 2 + path: ../../lib/DI/ContainerWrapper.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot use array destructuring on array\\\\|MailPoetVendor\\\\Doctrine\\\\ORM\\\\PersistentCollection\\.$#" + count: 1 + path: ../../lib/Doctrine/EventListeners/LastSubscribedAtListener.php + + - + message: "#^Dead catch \\- ReflectionException is never thrown in the try block\\.$#" + count: 1 + path: ../../lib/Doctrine/MetadataCache.php + + - + message: "#^Parameter \\#2 \\$isHit of class MailPoet\\\\Doctrine\\\\PSRCacheItem constructor expects bool, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRArrayCache.php + + - + message: "#^Parameter \\#2 \\$code of class MailPoet\\\\Doctrine\\\\PSRCacheInvalidArgumentException constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRMetadataCache.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 2 + path: ../../lib/Doctrine/TablePrefixMetadataFactory.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/BigIntType.php + + - + message: "#^Parameter \\#1 \\$date of static method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:instance\\(\\) expects DateTimeInterface, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/DateTimeTzToStringType.php + + - + message: "#^Parameter \\#1 \\$data of function is_serialized expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonType.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/SerializedArrayType.php + + - + message: "#^Variable \\$filterData on left side of \\?\\? is never defined\\.$#" + count: 1 + path: ../../lib/Entities/DynamicSegmentFilterData.php + + - + message: "#^Method MailPoet\\\\Entities\\\\SegmentEntity\\:\\:getFiltersConnectOperator\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Entities/SegmentEntity.php + + - + message: "#^Variable \\$classes in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Form/Block/Paragraph.php + + - + message: "#^Method MailPoet\\\\Form\\\\DisplayFormInWPContent\\:\\:shouldDisplay\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Parameter \\#1 \\$postTypes of method MailPoet\\\\WP\\\\Functions\\:\\:isSingular\\(\\) expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkRestore\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkTrash\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:findAllNotDeleted\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Form/Listing/FormListingRepository.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/Form/Renderer.php + + - + message: "#^Cannot call method count\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot call method offset\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Listing\\\\ListingRepository\\:\\:getData\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Logging\\\\LogRepository\\:\\:getLogs\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Logging/LogRepository.php + + - + message: "#^Variable \\$mailer in empty\\(\\) is never defined\\.$#" + count: 1 + path: ../../lib/Mailer/MailerLog.php + + - + message: "#^Parameter \\#1 \\$timeout of method MailPoetVendor\\\\Swift_Transport_EsmtpTransport\\:\\:setTimeout\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#1 \\$transport of class MailPoetVendor\\\\Swift_Mailer constructor expects MailPoetVendor\\\\Swift_Transport, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#2 \\$code of class PHPMailer\\\\PHPMailer\\\\Exception constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/WordPress/WordPressMailer.php + + - + message: "#^Method MailPoet\\\\Models\\\\DynamicSegmentFilter\\:\\:__get\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Models/DynamicSegmentFilter.php + + - + message: "#^Parameter \\#2 \\$array of function implode expects array\\, array\\\\|string\\> given\\.$#" + count: 1 + path: ../../lib/Models/Subscriber.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Variable \\$terms in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot call method getMeta\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Editor\\\\PostTransformer\\:\\:\\$withLayout is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformer.php + + - + message: "#^Parameter \\#1 \\$string of function strip_tags expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformerContentsExtractor.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'newsletterCount' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Newsletter\\\\ApiDataSanitizer\\:\\:sanitizeBody\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'event' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 4 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findActiveByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findDraftByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findSendigNotificationHistoryWithPausedTask\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:getArchives\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findAutomaticEmailsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findWelcomeNotificationsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Renderer\\\\Renderer\\:\\:postProcessTemplate\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Renderer/Renderer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'segment_id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'subject' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndStatus\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndSubscriberId\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByScheduledAndRunningForNewsletter\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findPreviousTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledOrRunningTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findAllForSubscriberSentBetween\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findOneByNewsletterAndTaskStatus\\(\\) should return MailPoet\\\\Entities\\\\SendingQueueEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:processShortcodeAction\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 4 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'total' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 7 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Statistics\\\\NewsletterStatisticsRepository\\:\\:getStatisticsMachineOpenCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Else branch is unreachable because previous condition is always true\\.$#" + count: 1 + path: ../../lib/Newsletter/ViewInBrowser/ViewInBrowserRenderer.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Method MailPoet\\\\NewsletterTemplates\\\\NewsletterTemplatesRepository\\:\\:findAllForListing\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterTemplateEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Variable \\$thumbnailUrl on left side of \\?\\? always exists and is not nullable\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/ThumbnailSaver.php + + - + message: "#^Cannot access property \\$allowedActions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Cannot access property \\$permissions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\DynamicSegmentFilterRepository\\:\\:findOnyByFilterTypeAndAction\\(\\) should return MailPoet\\\\Entities\\\\DynamicSegmentFilterEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/DynamicSegmentFilterRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterDataMapper\\:\\:map\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/FilterDataMapper.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\CarbonImmutable\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountAction.php + + - + message: "#^Parameter \\#1 \\$search of static method MailPoet\\\\Util\\\\Helpers\\:\\:escapeSearch\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateEqual\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateYear\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberScore.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSegment.php + + - + message: "#^Parameter \\#2 \\$value of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\SubscriberSubscribedDate\\:\\:getDate\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSubscribedDate.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\UserRole\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/UserRole.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceCountry\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceNumberOfOrders.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceSubscription.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceTotalSpent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentListingRepository.php + + - + message: "#^Cannot access offset 'all' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersGlobalStatusStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersWithoutSegmentStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$y of method MailPoetVendor\\\\Doctrine\\\\DBAL\\\\Query\\\\Expression\\\\ExpressionBuilder\\:\\:notIn\\(\\) expects array\\\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:findByUpdatedScoreNotInLastDay\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:updateDeletedAt\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'subscribers' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsSimpleListRepository\\:\\:getList\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#1 \\$segmentId of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCountById\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/WP.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Method MailPoet\\\\Segments\\\\WooCommerce\\:\\:insertSubscriberFromOrder\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_errno expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_error expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_getinfo expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$smtp through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$web through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Method MailPoet\\\\Statistics\\\\StatisticsClicksRepository\\:\\:findLatestPerNewsletterBySubscriber\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsClicksRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsOpensRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimp\\:\\:getApiData\\(\\) should return array\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/Import/MailChimp.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Part \\$customField\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscribers/InactiveSubscribersController.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\Statistics\\\\SubscriberStatisticsRepository\\:\\:getTotalSentCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:findOneByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return MailPoet\\\\Entities\\\\SubscriberIPEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:getCountByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'subscribersCount' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getId\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getName\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method isStatic\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentGlobalStatusStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberSegmentRepository\\:\\:getNonDefaultSubscribedSegments\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberSegmentRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findByUpdatedScoreNotInLastMonth\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findExclusiveSubscribersBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdsOfDeletedByEmails\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findWpUserIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:getUndeletedSubscribersEmailsByIds\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$subscriber of class MailPoet\\\\Entities\\\\SubscriberSegmentEntity constructor expects MailPoet\\\\Entities\\\\SubscriberEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$array of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$blocks of method MailPoet\\\\Form\\\\Renderer\\:\\:renderBlocks\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/ManageSubscriptionFormRenderer.php + + - + message: "#^Property MailPoet\\\\Subscription\\\\Pages\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Subscription/Pages.php + + - + message: "#^Parameter mixed of print cannot be converted to string\\.$#" + count: 1 + path: ../../lib/Subscription/Registration.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$array of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$seconds of method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:deleteCreatedAtBeforeTimeInSeconds\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Cannot call method getDefinitions\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$class of class ReflectionProperty constructor expects object\\|string, class\\-string\\|false given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of function get_class expects object, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 4 + path: ../../lib/Util/ConflictResolver.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + count: 2 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^Part \\$sourceCollation \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^While loop condition is always true\\.$#" + count: 1 + path: ../../lib/Util/DOM.php + + - + message: "#^Method MailPoet\\\\Util\\\\ProgressBar\\:\\:readProgress\\(\\) should return array\\|false but returns mixed\\.$#" + count: 1 + path: ../../lib/Util/ProgressBar.php + + - + message: "#^PHPDoc type MailPoet\\\\Util\\\\pQuery\\\\DomNode\\|string of property MailPoet\\\\Util\\\\pQuery\\\\Html5Parser\\:\\:\\$root is not covariant with PHPDoc type MailPoetVendor\\\\pQuery\\\\DomNode of overridden property MailPoetVendor\\\\pQuery\\\\HtmlParser\\:\\:\\$root\\.$#" + count: 1 + path: ../../lib/Util/pQuery/Html5Parser.php + + - + message: "#^Method MailPoet\\\\WP\\\\Emoji\\:\\:sanitizeEmojisInFormBody\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Emoji.php + + - + message: "#^Method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Functions.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/WooCommerce/Helper.php + + - + message: "#^Parameter \\#1 \\(mixed\\) of echo cannot be converted to string\\.$#" + count: 1 + path: ../../lib/WooCommerce/Subscription.php + + - + message: "#^PHPDoc type MailPoet\\\\Segments\\\\DynamicSegments\\\\SegmentSaveController of property MailPoet\\\\Test\\\\DataFactories\\\\DynamicSegment\\:\\:\\$saveController is not covariant with PHPDoc type MailPoet\\\\Segments\\\\SegmentSaveController of overridden property MailPoet\\\\Test\\\\DataFactories\\\\Segment\\:\\:\\$saveController\\.$#" + count: 1 + path: ../../tests/DataFactories/DynamicSegment.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\FormEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Settings.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceCustomer\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceOrder\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Part \\$order\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceProduct\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method AcceptanceTester\\:\\:createPost\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Part \\$optionsContainer \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomCheckboxInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomDateInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomRadioButtonsInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomSelectInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextAreaInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextInputInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:openFormInEditor\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:saveCustomFieldBlock\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 2 + path: ../../tests/acceptance/Forms/EditorPlaceFormOnSpecifiedPageCest.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/EditorProductsCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\SendingStatusCest\\:\\:checkSubscriber\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/SendingStatusCest.php + + - + message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Segments/CreateSubscriberScoreSegmentCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/ReinstallFromScratchCest.php + + - + message: "#^Cannot access offset 'transactional_email…' on mixed\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/ManageSubscriptionLinkCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/SubscriberCookieCest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/API/JSON/v1/SendingQueueTest.php + + - + message: "#^Parameter \\#1 \\$needle of method Codeception\\\\Verify\\\\Verify\\:\\:stringContainsString\\(\\) expects string, mixed given\\.$#" + count: 4 + path: ../../tests/integration/API/JSON/v1/ServicesTest.php + + - + message: "#^Cannot access offset 'label' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'on_success' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'required' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'segments' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'success_message' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'validate' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 3 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 999 on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\TimestampEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/TimestampEntity.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\ValidatedEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/ValidatedEntity.php + + - + message: "#^Dead catch \\- MailPoet\\\\Doctrine\\\\Validator\\\\ValidationException is never thrown in the try block\\.$#" + count: 2 + path: ../../tests/integration/Doctrine/EventListeners/ValidationTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\Types\\\\JsonEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/Types/JsonEntity.php + + - + message: "#^Parameter \\#2 \\$array of function join expects array\\, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Parameter \\#2 \\$pieces of function join expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Cannot access offset 'List\\-Unsubscribe' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Mailer/Methods/SendGridTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Newsletter/Preview/SendPreviewControllerTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 8 + path: ../../tests/integration/Newsletter/RendererTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber1 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber2 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionClickAnyTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 18 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 15 + path: ../../tests/integration/Segments/DynamicSegments/Filters/MailPoetCustomFieldsTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 14 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberScoreTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSegmentTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSubscribedDateTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceCountryTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceTotalSpentTest\\:\\:\\$orders \\(array\\\\) on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Segments\\\\WPTest\\:\\:getSubscribersCount\\(\\) has parameter \\$a with no type specified\\.$#" + count: 1 + path: ../../tests/integration/Segments/WPTest.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot call method getSegments\\(\\) on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot access offset 'key1' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Cannot access offset 'key2' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Parameter \\#1 \\$jsonData of method MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:createExport\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Property MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:\\$jSONData \\(array\\) does not accept mixed\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 5 + path: ../../tests/integration/Subscribers/ImportExport/ImportExportFactoryTest.php + + - + message: "#^Part \\$table \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/integration/_bootstrap.php + diff --git a/tasks/phpstan/phpstan-8.1-baseline.neon b/tasks/phpstan/phpstan-8.1-baseline.neon new file mode 100644 index 0000000000..1b6241c7df --- /dev/null +++ b/tasks/phpstan/phpstan-8.1-baseline.neon @@ -0,0 +1,1967 @@ +parameters: + ignoreErrors: + - + message: "#^Cannot access property \\$permissions on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Cannot call method isMethodAllowed\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/API.php + + - + message: "#^Property MailPoet\\\\API\\\\JSON\\\\ResponseBuilders\\\\DynamicSegmentsResponseBuilder\\:\\:\\$segmentSubscriberRepository is never read, only written\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/DynamicSegmentsResponseBuilder.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/ResponseBuilders/NewslettersResponseBuilder.php + + - + message: "#^Parameter \\#4 \\$data of class MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\Export constructor expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/ImportExport.php + + - + message: "#^Parameter \\#6 \\$data of class MailPoet\\\\Subscribers\\\\ImportExport\\\\Import\\\\Import constructor expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/ImportExport.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Newsletter\\\\ApiDataSanitizer\\:\\:sanitizeBody\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/NewsletterTemplates.php + + - + message: "#^Cannot access offset 'preview_url' on mixed\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Parameter \\#1 \\$data of method MailPoet\\\\Newsletter\\\\NewsletterSaveController\\:\\:save\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Newsletters.php + + - + message: "#^Dead catch \\- MailPoet\\\\Doctrine\\\\Validator\\\\ValidationException is never thrown in the try block\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Segments.php + + - + message: "#^Property MailPoet\\\\API\\\\JSON\\\\v1\\\\Segments\\:\\:\\$wooCommerceSync is never read, only written\\.$#" + count: 1 + path: ../../lib/API/JSON/v1/Segments.php + + - + message: "#^Parameter \\#2 \\$code of class MailPoet\\\\API\\\\MP\\\\v1\\\\APIException constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/API/MP/v1/API.php + + - + message: "#^Method MailPoet\\\\Analytics\\\\Analytics\\:\\:generateAnalytics\\(\\) should return array\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Analytics/Analytics.php + + - + message: "#^Cannot access offset 'events' on mixed\\.$#" + count: 3 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Cannot access offset 'slug' on mixed\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$automaticEmail of method MailPoet\\\\AutomaticEmails\\\\AutomaticEmails\\:\\:validateAutomaticEmailDataFields\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Parameter \\#1 \\$automaticEmailEvents of method MailPoet\\\\AutomaticEmails\\\\AutomaticEmails\\:\\:validateAutomaticEmailEventsDataFields\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/AutomaticEmails.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/FirstPurchase.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/PurchasedInCategory.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/AutomaticEmails/WooCommerce/Events/PurchasedProduct.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/Cache/TransientCache.php + + - + message: "#^Cannot call method getWrappedConnection\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Config/DatabaseInitializer.php + + - + message: "#^Cannot use array destructuring on array\\|true\\.$#" + count: 1 + path: ../../lib/Config/Env.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Config/Hooks.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'analytics' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'body' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'bounce_email' on mixed\\.$#" + count: 3 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform_linkname' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'commentform_lists' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirm_dbleoptin' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirm_email_id' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'confirmation_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'emails_notified' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'field' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'from_email' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'from_name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'installed_time' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'lists' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'lists_selected_by' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'manage…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'on_success' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'params' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'position' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform_lists' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'registerform…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'replyto_email' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'replyto_name' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_emails_each' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_emails…' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'sending_method' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'settings' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_auth' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_host' on mixed\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_login' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_password' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_port' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'smtp_secure' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'subscriptions_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'success_message' on mixed\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access offset 'unsubscribe_page' on mixed\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^If condition is always false\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$emailId of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:getEmail\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$emailsNumber of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyEmails\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$intervalStr of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyInterval\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$mp2ListIds of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:getMappedSegmentIds\\(\\) expects array, mixed given\\.$#" + count: 4 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$mp2Type of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldType\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#1 \\$name of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldParams\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#2 \\$intervalStr of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapFrequencyEmails\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#2 \\$params of method MailPoet\\\\Config\\\\MP2Migrator\\:\\:mapCustomFieldParams\\(\\) expects array, mixed given\\.$#" + count: 2 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$result in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$segment in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Variable \\$subscriber in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Config/MP2Migrator.php + + - + message: "#^Cannot access an offset on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'action' on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'category_id' on mixed\\.$#" + count: 4 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'category_ids' on mixed\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'operator' on mixed\\.$#" + count: 6 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'product_id' on mixed\\.$#" + count: 8 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'product_ids' on mixed\\.$#" + count: 6 + path: ../../lib/Config/Migrator.php + + - + message: "#^Cannot access offset 'segmentType' on mixed\\.$#" + count: 2 + path: ../../lib/Config/Migrator.php + + - + message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + count: 3 + path: ../../lib/Config/Migrator.php + + - + message: "#^Call to an undefined method object\\:\\:get\\(\\)\\.$#" + count: 1 + path: ../../lib/Config/Populator.php + + - + message: "#^Parameter \\#2 \\$args of method MailPoet\\\\WP\\\\Functions\\:\\:wpRemotePost\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Cron/CronHelper.php + + - + message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Cron/CronHelper.php + + - + message: "#^Expression in empty\\(\\) is not falsy\\.$#" + count: 2 + path: ../../lib/Cron/CronWorkerRunner.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, class\\-string\\|false given\\.$#" + count: 1 + path: ../../lib/Cron/Daemon.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/Beamer.php + + - + message: "#^Cannot access offset 'processed' on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Cannot access offset 'to_process' on mixed\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Parameter \\#1 \\$array of function array_slice expects array, mixed given\\.$#" + count: 2 + path: ../../lib/Cron/Workers/SendingQueue/Migration.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\SendingQueue\\\\SendingThrottlingHandler\\:\\:getMaxBatchSize\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/SendingQueue/SendingThrottlingHandler.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\StatsNotifications\\\\StatsNotificationsRepository\\:\\:findOneByNewsletterId\\(\\) should return MailPoet\\\\Entities\\\\StatsNotificationEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/StatsNotifications/StatsNotificationsRepository.php + + - + message: "#^Method MailPoet\\\\Cron\\\\Workers\\\\StatsNotifications\\\\StatsNotificationsRepository\\:\\:findScheduled\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Cron/Workers/StatsNotifications/StatsNotificationsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/SubscribersLastEngagement.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Cron/Workers/WooCommerceSync.php + + - + message: "#^Cannot call method get\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/DI/ContainerConfigurator.php + + - + message: "#^Method MailPoet\\\\DI\\\\ContainerWrapper\\:\\:get\\(\\) should return T but returns object&T\\.$#" + count: 2 + path: ../../lib/DI/ContainerWrapper.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 1 + path: ../../lib/Doctrine/ArrayCache.php + + - + message: "#^Cannot use array destructuring on array\\\\|MailPoetVendor\\\\Doctrine\\\\ORM\\\\PersistentCollection\\.$#" + count: 1 + path: ../../lib/Doctrine/EventListeners/LastSubscribedAtListener.php + + - + message: "#^Dead catch \\- ReflectionException is never thrown in the try block\\.$#" + count: 1 + path: ../../lib/Doctrine/MetadataCache.php + + - + message: "#^Parameter \\#2 \\$isHit of class MailPoet\\\\Doctrine\\\\PSRCacheItem constructor expects bool, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRArrayCache.php + + - + message: "#^Parameter \\#2 \\$code of class MailPoet\\\\Doctrine\\\\PSRCacheInvalidArgumentException constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/PSRMetadataCache.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 2 + path: ../../lib/Doctrine/TablePrefixMetadataFactory.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/BigIntType.php + + - + message: "#^Parameter \\#1 \\$date of static method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:instance\\(\\) expects DateTimeInterface, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/DateTimeTzToStringType.php + + - + message: "#^Parameter \\#1 \\$data of function is_serialized expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonOrSerializedType.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/JsonType.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Doctrine/Types/SerializedArrayType.php + + - + message: "#^Variable \\$filterData on left side of \\?\\? is never defined\\.$#" + count: 1 + path: ../../lib/Entities/DynamicSegmentFilterData.php + + - + message: "#^Method MailPoet\\\\Entities\\\\SegmentEntity\\:\\:getFiltersConnectOperator\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Entities/SegmentEntity.php + + - + message: "#^Variable \\$classes in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Form/Block/Paragraph.php + + - + message: "#^Method MailPoet\\\\Form\\\\DisplayFormInWPContent\\:\\:shouldDisplay\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Parameter \\#1 \\$postTypes of method MailPoet\\\\WP\\\\Functions\\:\\:isSingular\\(\\) expects array\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Form/DisplayFormInWPContent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkRestore\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:bulkTrash\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Method MailPoet\\\\Form\\\\FormsRepository\\:\\:findAllNotDeleted\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Form/FormsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Form/Listing/FormListingRepository.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/Form/Renderer.php + + - + message: "#^Cannot call method count\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot call method offset\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Listing/Handler.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Listing\\\\ListingRepository\\:\\:getData\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Listing/ListingRepository.php + + - + message: "#^Method MailPoet\\\\Logging\\\\LogRepository\\:\\:getLogs\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Logging/LogRepository.php + + - + message: "#^Variable \\$mailer in empty\\(\\) is never defined\\.$#" + count: 1 + path: ../../lib/Mailer/MailerLog.php + + - + message: "#^Parameter \\#1 \\$timeout of method MailPoetVendor\\\\Swift_Transport_EsmtpTransport\\:\\:setTimeout\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#1 \\$transport of class MailPoetVendor\\\\Swift_Mailer constructor expects MailPoetVendor\\\\Swift_Transport, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/Methods/SMTP.php + + - + message: "#^Parameter \\#2 \\$code of class PHPMailer\\\\PHPMailer\\\\Exception constructor expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Mailer/WordPress/WordPressMailer.php + + - + message: "#^Method MailPoet\\\\Models\\\\DynamicSegmentFilter\\:\\:__get\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Models/DynamicSegmentFilter.php + + - + message: "#^Parameter \\#2 \\$array of function implode expects array\\, array\\\\|string\\> given\\.$#" + count: 1 + path: ../../lib/Models/Subscriber.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Variable \\$terms in empty\\(\\) always exists and is not falsy\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomatedLatestContent.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot call method getMeta\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Newsletter/AutomaticEmailsRepository.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Editor\\\\PostTransformer\\:\\:\\$withLayout is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformer.php + + - + message: "#^Parameter \\#1 \\$string of function strip_tags expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Editor/PostTransformerContentsExtractor.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'newsletterCount' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Listing/NewsletterListingRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Newsletter\\\\ApiDataSanitizer\\:\\:sanitizeBody\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/NewsletterSaveController.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'event' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 4 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findActiveByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findDraftByTypes\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:findSendigNotificationHistoryWithPausedTask\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\NewslettersRepository\\:\\:getArchives\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/NewslettersRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findAutomaticEmailsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Options\\\\NewsletterOptionsRepository\\:\\:findWelcomeNotificationsForSegments\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Options/NewsletterOptionsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Renderer\\\\Renderer\\:\\:postProcessTemplate\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Renderer/Renderer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'segment_id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot access offset 'subject' on mixed\\.$#" + count: 2 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 3 + path: ../../lib/Newsletter/Segment/NewsletterSegmentRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndStatus\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByNewsletterAndSubscriberId\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findByScheduledAndRunningForNewsletter\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findPreviousTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledOrRunningTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\ScheduledTasksRepository\\:\\:findScheduledTask\\(\\) should return MailPoet\\\\Entities\\\\ScheduledTaskEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/ScheduledTasksRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findAllForSubscriberSentBetween\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Sending\\\\SendingQueuesRepository\\:\\:findOneByNewsletterAndTaskStatus\\(\\) should return MailPoet\\\\Entities\\\\SendingQueueEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Sending/SendingQueuesRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:processShortcodeAction\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Property MailPoet\\\\Newsletter\\\\Shortcodes\\\\Categories\\\\Link\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Link.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:removeAction\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Newsletter/Shortcodes/Categories/Newsletter.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 4 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot access offset 'total' on mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 7 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Newsletter\\\\Statistics\\\\NewsletterStatisticsRepository\\:\\:getStatisticsMachineOpenCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Newsletter/Statistics/NewsletterStatisticsRepository.php + + - + message: "#^Else branch is unreachable because previous condition is always true\\.$#" + count: 1 + path: ../../lib/Newsletter/ViewInBrowser/ViewInBrowserRenderer.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Method MailPoet\\\\NewsletterTemplates\\\\NewsletterTemplatesRepository\\:\\:findAllForListing\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterTemplateEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php + + - + message: "#^Variable \\$thumbnailUrl on left side of \\?\\? always exists and is not nullable\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/ThumbnailSaver.php + + - + message: "#^Cannot access property \\$allowedActions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Cannot access property \\$permissions on mixed\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Router/Router.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\DynamicSegmentFilterRepository\\:\\:findOnyByFilterTypeAndAction\\(\\) should return MailPoet\\\\Entities\\\\DynamicSegmentFilterEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/DynamicSegmentFilterRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterDataMapper\\:\\:map\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/FilterDataMapper.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailAction.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\CarbonImmutable\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountAction.php + + - + message: "#^Parameter \\#1 \\$search of static method MailPoet\\\\Util\\\\Helpers\\:\\:escapeSearch\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateEqual\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\MailPoetCustomFields\\:\\:applyForDateYear\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/MailPoetCustomFields.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberScore.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSegment.php + + - + message: "#^Parameter \\#2 \\$value of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\SubscriberSubscribedDate\\:\\:getDate\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/SubscriberSubscribedDate.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\UserRole\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/UserRole.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#2 \\$operator of method MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceCountry\\:\\:createCondition\\(\\) expects string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceCountry.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceNumberOfOrders.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceSubscription.php + + - + message: "#^Parameter \\#1 \\$value of method MailPoetVendor\\\\Carbon\\\\Carbon\\:\\:subDays\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/DynamicSegments/Filters/WooCommerceTotalSpent.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentListingRepository.php + + - + message: "#^Cannot access offset 'all' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersGlobalStatusStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentSubscribersRepository\\:\\:getSubscribersWithoutSegmentStatisticsCount\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$y of method MailPoetVendor\\\\Doctrine\\\\DBAL\\\\Query\\\\Expression\\\\ExpressionBuilder\\:\\:notIn\\(\\) expects array\\\\|string, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentSubscribersRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'cnt' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:findByUpdatedScoreNotInLastDay\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsRepository\\:\\:updateDeletedAt\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsRepository.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'subscribers' on mixed\\.$#" + count: 3 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Method MailPoet\\\\Segments\\\\SegmentsSimpleListRepository\\:\\:getList\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#1 \\$segmentId of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCountById\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/SegmentsSimpleListRepository.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Segments/WP.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Method MailPoet\\\\Segments\\\\WooCommerce\\:\\:insertSubscriberFromOrder\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Segments/WooCommerce.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_errno expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_error expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Parameter \\#1 \\$handle of function curl_getinfo expects CurlHandle, mixed given\\.$#" + count: 1 + path: ../../lib/Services/Bridge/API.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$smtp through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Unsafe access to private property MailPoet\\\\Settings\\\\Hosts\\:\\:\\$web through static\\:\\:\\.$#" + count: 1 + path: ../../lib/Settings/Hosts.php + + - + message: "#^Method MailPoet\\\\Statistics\\\\StatisticsClicksRepository\\:\\:findLatestPerNewsletterBySubscriber\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsClicksRepository.php + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: ../../lib/Statistics/StatisticsOpensRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimp\\:\\:getApiData\\(\\) should return array\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/Import/MailChimp.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Part \\$customField\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Subscribers/ImportExport/ImportExportRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscribers/InactiveSubscribersController.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\Statistics\\\\SubscriberStatisticsRepository\\:\\:getTotalSentCount\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$array of function array_column expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/Statistics/SubscriberStatisticsRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:findOneByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return MailPoet\\\\Entities\\\\SubscriberIPEntity\\|null but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:getCountByIPAndCreatedAtAfterTimeInSeconds\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberIPsRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'status' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot access offset 'subscribersCount' on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getId\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method getName\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot call method isStatic\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 3 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentGlobalStatusStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Parameter \\#1 \\$segment of method MailPoet\\\\Subscribers\\\\SubscribersCountsController\\:\\:getSegmentStatisticsCount\\(\\) expects MailPoet\\\\Entities\\\\SegmentEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberListingRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscriberSegmentRepository\\:\\:getNonDefaultSubscribedSegments\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscriberSegmentRepository.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:bulkDelete\\(\\) should return int but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findByUpdatedScoreNotInLastMonth\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findExclusiveSubscribersBySegment\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findIdsOfDeletedByEmails\\(\\) should return array\\ but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:findWpUserIdAndEmailByEmails\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Method MailPoet\\\\Subscribers\\\\SubscribersRepository\\:\\:getUndeletedSubscribersEmailsByIds\\(\\) should return array\\ but returns array\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 2 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Parameter \\#2 \\$subscriber of class MailPoet\\\\Entities\\\\SubscriberSegmentEntity constructor expects MailPoet\\\\Entities\\\\SubscriberEntity, mixed given\\.$#" + count: 1 + path: ../../lib/Subscribers/SubscribersRepository.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$array of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Captcha.php + + - + message: "#^Parameter \\#1 \\$blocks of method MailPoet\\\\Form\\\\Renderer\\:\\:renderBlocks\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/ManageSubscriptionFormRenderer.php + + - + message: "#^Property MailPoet\\\\Subscription\\\\Pages\\:\\:\\$settings is never read, only written\\.$#" + count: 1 + path: ../../lib/Subscription/Pages.php + + - + message: "#^Parameter mixed of print cannot be converted to string\\.$#" + count: 1 + path: ../../lib/Subscription/Registration.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 2 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$array of function array_intersect expects array, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Parameter \\#1 \\$seconds of method MailPoet\\\\Subscribers\\\\SubscriberIPsRepository\\:\\:deleteCreatedAtBeforeTimeInSeconds\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../lib/Subscription/Throttling.php + + - + message: "#^Cannot call method getDefinitions\\(\\) on mixed\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$class of class ReflectionProperty constructor expects object\\|string, class\\-string\\|false given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of function get_class expects object, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, mixed given\\.$#" + count: 1 + path: ../../lib/Tracy/DIPanel/DIPanel.php + + - + message: "#^Parameter \\#3 \\$priority of method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) expects int, mixed given\\.$#" + count: 4 + path: ../../lib/Util/ConflictResolver.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + count: 2 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^Part \\$sourceCollation \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../lib/Util/DBCollationChecker.php + + - + message: "#^While loop condition is always true\\.$#" + count: 1 + path: ../../lib/Util/DOM.php + + - + message: "#^Method MailPoet\\\\Util\\\\ProgressBar\\:\\:readProgress\\(\\) should return array\\|false but returns mixed\\.$#" + count: 1 + path: ../../lib/Util/ProgressBar.php + + - + message: "#^PHPDoc type MailPoet\\\\Util\\\\pQuery\\\\DomNode\\|string of property MailPoet\\\\Util\\\\pQuery\\\\Html5Parser\\:\\:\\$root is not covariant with PHPDoc type MailPoetVendor\\\\pQuery\\\\DomNode of overridden property MailPoetVendor\\\\pQuery\\\\HtmlParser\\:\\:\\$root\\.$#" + count: 1 + path: ../../lib/Util/pQuery/Html5Parser.php + + - + message: "#^Method MailPoet\\\\WP\\\\Emoji\\:\\:sanitizeEmojisInFormBody\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Emoji.php + + - + message: "#^Method MailPoet\\\\WP\\\\Functions\\:\\:addAction\\(\\) should return bool but returns mixed\\.$#" + count: 1 + path: ../../lib/WP/Functions.php + + - + message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../lib/WooCommerce/Helper.php + + - + message: "#^Parameter \\#1 \\(mixed\\) of echo cannot be converted to string\\.$#" + count: 1 + path: ../../lib/WooCommerce/Subscription.php + + - + message: "#^PHPDoc type MailPoet\\\\Segments\\\\DynamicSegments\\\\SegmentSaveController of property MailPoet\\\\Test\\\\DataFactories\\\\DynamicSegment\\:\\:\\$saveController is not covariant with PHPDoc type MailPoet\\\\Segments\\\\SegmentSaveController of overridden property MailPoet\\\\Test\\\\DataFactories\\\\Segment\\:\\:\\$saveController\\.$#" + count: 1 + path: ../../tests/DataFactories/DynamicSegment.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\FormEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Form.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/Settings.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceCustomer\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceCustomer.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceOrder\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Part \\$order\\['id'\\] \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceOrder.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Parameter \\#1 \\$id of method MailPoet\\\\Test\\\\DataFactories\\\\WooCommerceProduct\\:\\:delete\\(\\) expects int, mixed given\\.$#" + count: 1 + path: ../../tests/DataFactories/WooCommerceProduct.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method AcceptanceTester\\:\\:createPost\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Part \\$optionsContainer \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/_support/AcceptanceTester.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomCheckboxInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomDateInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomRadioButtonsInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomSelectInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextAreaInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:checkCustomTextInputInForm\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:openFormInEditor\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\EditorCreateCustomFieldCest\\:\\:saveCustomFieldBlock\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Forms/EditorCreateCustomFieldCest.php + + - + message: "#^Cannot access offset 'guid' on mixed\\.$#" + count: 2 + path: ../../tests/acceptance/Forms/EditorPlaceFormOnSpecifiedPageCest.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/EditorProductsCest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Acceptance\\\\SendingStatusCest\\:\\:checkSubscriber\\(\\) has parameter \\$i with no type specified\\.$#" + count: 1 + path: ../../tests/acceptance/Newsletters/SendingStatusCest.php + + - + message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Segments/CreateSubscriberScoreSegmentCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/ReinstallFromScratchCest.php + + - + message: "#^Cannot access offset 'transactional_email…' on mixed\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Settings/WooCommerceEmailCustomizationCest.php + + - + message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/ManageSubscriptionLinkCest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/acceptance/Subscribers/SubscriberCookieCest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/API/JSON/v1/SendingQueueTest.php + + - + message: "#^Parameter \\#1 \\$needle of method Codeception\\\\Verify\\\\Verify\\:\\:stringContainsString\\(\\) expects string, mixed given\\.$#" + count: 4 + path: ../../tests/integration/API/JSON/v1/ServicesTest.php + + - + message: "#^Cannot access offset 'label' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'name' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'on_success' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'required' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'segments' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'success_message' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'type' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 'validate' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 3 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Cannot access offset 999 on mixed\\.$#" + count: 1 + path: ../../tests/integration/Config/MP2MigratorTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\TimestampEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/TimestampEntity.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\EventListeners\\\\ValidatedEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/EventListeners/ValidatedEntity.php + + - + message: "#^Dead catch \\- MailPoet\\\\Doctrine\\\\Validator\\\\ValidationException is never thrown in the try block\\.$#" + count: 2 + path: ../../tests/integration/Doctrine/EventListeners/ValidationTest.php + + - + message: "#^Property MailPoet\\\\Test\\\\Doctrine\\\\Types\\\\JsonEntity\\:\\:\\$id is never written, only read\\.$#" + count: 1 + path: ../../tests/integration/Doctrine/Types/JsonEntity.php + + - + message: "#^Parameter \\#2 \\$array of function join expects array\\, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Parameter \\#2 \\$pieces of function join expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Helpscout/BeaconTest.php + + - + message: "#^Cannot access offset 'List\\-Unsubscribe' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Mailer/Methods/SendGridTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Newsletter/Preview/SendPreviewControllerTest.php + + - + message: "#^Parameter \\#1 \\$body of method MailPoet\\\\Entities\\\\NewsletterEntity\\:\\:setBody\\(\\) expects array\\|null, mixed given\\.$#" + count: 8 + path: ../../tests/integration/Newsletter/RendererTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 2 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber1 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\FilterHandlerTest\\:\\:\\$subscriber2 is never read, only written\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/FilterHandlerTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionClickAnyTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 18 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/EmailOpensAbsoluteCountActionTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 15 + path: ../../tests/integration/Segments/DynamicSegments/Filters/MailPoetCustomFieldsTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 14 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberScoreTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSegmentTest.php + + - + message: "#^Cannot access offset 'id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/SubscriberSubscribedDateTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 5 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceCountryTest.php + + - + message: "#^Cannot access offset 'inner_subscriber_id' on mixed\\.$#" + count: 7 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Property MailPoet\\\\Segments\\\\DynamicSegments\\\\Filters\\\\WooCommerceTotalSpentTest\\:\\:\\$orders \\(array\\\\) on left side of \\?\\? is not nullable\\.$#" + count: 1 + path: ../../tests/integration/Segments/DynamicSegments/Filters/WooCommerceTotalSpentTest.php + + - + message: "#^Method MailPoet\\\\Test\\\\Segments\\\\WPTest\\:\\:getSubscribersCount\\(\\) has parameter \\$a with no type specified\\.$#" + count: 1 + path: ../../tests/integration/Segments/WPTest.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot call method getSegments\\(\\) on mixed\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: ../../tests/integration/Segments/WooCommerceTest.php + + - + message: "#^Cannot access offset 'key1' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Cannot access offset 'key2' on mixed\\.$#" + count: 3 + path: ../../tests/integration/Settings/SettingsControllerTest.php + + - + message: "#^Parameter \\#1 \\$jsonData of method MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:createExport\\(\\) expects array, mixed given\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Property MailPoet\\\\Subscribers\\\\ImportExport\\\\Export\\\\ExportTest\\:\\:\\$jSONData \\(array\\) does not accept mixed\\.$#" + count: 1 + path: ../../tests/integration/Subscribers/ImportExport/Export/ExportTest.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 5 + path: ../../tests/integration/Subscribers/ImportExport/ImportExportFactoryTest.php + + - + message: "#^Part \\$table \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: ../../tests/integration/_bootstrap.php + diff --git a/tasks/phpstan/phpstan-baseline-fix-lib.php b/tasks/phpstan/phpstan-baseline-fix-lib.php new file mode 100644 index 0000000000..1825063f9f --- /dev/null +++ b/tasks/phpstan/phpstan-baseline-fix-lib.php @@ -0,0 +1,20 @@ +