Files
piratepoet/tasks/phpstan/phpstan-baseline-unit-tests.neon
2020-01-14 15:22:42 +01:00

64 lines
2.2 KiB
Plaintext

parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/DataFactories/Newsletter.php
-
message: "#^Parameter \\#1 \\$query of method PDO\\:\\:exec\\(\\) expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/_support/CleanupExtension.php
-
message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#"
count: 1
path: ../../tests/_support/Helper/Database.php
-
message: "#^Parameter \\#1 \\$query of method PDO\\:\\:exec\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: ../../tests/_support/Helper/Database.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, string given\\.$#"
count: 1
path: ../../tests/_support/Helper/WordPress.php
-
message: "#^Parameter \\#2 \\$value of function get_user_by expects int\\|string, int\\|WP_Error given\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot access property \\$roles on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot call method remove_role\\(\\) on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot call method add_role\\(\\) on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Property MailPoet\\\\Test\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimpTest\\:\\:\\$apiKey \\(string\\) does not accept string\\|false\\.$#"
count: 1
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
-
message: "#^Property MailPoet\\\\Test\\\\WP\\\\ReadmeTest\\:\\:\\$data \\(string\\) does not accept string\\|false\\.$#"
count: 1
path: ../../tests/unit/WP/ReadmeTest.php