Downgrade PHPStan level to 4

[MAILPOET-1915]
This commit is contained in:
Pavel Dohnal
2019-03-20 16:45:49 +01:00
committed by M. Shull
parent f3f769316a
commit c5b5d8f45d
3 changed files with 3 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ class RoboFile extends \Robo\Tasks {
'php -d memory_limit=2G '.
"$dir/phpstan.phar analyse ".
"--configuration $dir/tasks/phpstan/phpstan.neon ".
'--level 5 '.
'--level 4 '.
"$dir/lib"
)
->dir(__DIR__ . '/tasks/phpstan')

View File

@@ -87,7 +87,7 @@ class MailChimp {
}
if (!isset($header_hash)) {
$header_hash = md5(implode(',', $header));
} elseif (md5(implode(',', $header)) !== $header_hash) {
} elseif (md5(implode(',', $header) !== $header_hash)) {
return $this->throwException('headers');
}
} else {

View File

@@ -7,6 +7,7 @@ parameters:
- '#Call to an undefined method IdiormResultSet::set()#'
- '#Argument of an invalid type pQuery\\IQuery supplied for foreach, only iterables are supported#'
- '#Parameter \#2 \$prefix of function http_build_query expects string, null given.#'
- '#Parameter \#1 \$function of function call_user_func_array expects callable(): mixed, .wc_.*. given.#'
reportUnmatchedIgnoredErrors: false
dynamicConstantNames:
- WP_DEBUG