diff --git a/composer.json b/composer.json index e102d12..f99c6cc 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^7.1", - "phpstan/phpstan": "^0.10", + "phpstan/phpstan": "^0.11", "thecodingmachine/safe": "^0.1" }, "require-dev": { diff --git a/phpstan.neon b/phpstan.neon index 3a54d92..c4808b6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,4 +1,6 @@ parameters: ignoreErrors: + - ~^Function array_combine is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\\array_combine;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.$~ + reportUnmatchedIgnoredErrors: false includes: - phpstan-safe-rule.neon