From e7c3ba5d96e1322cb276ac2d941b807bb1bf88a0 Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Wed, 16 Jan 2019 23:36:45 +0100 Subject: [PATCH 1/2] Update phpstan version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From d4e301d45d5594ceae9924c4a6877dcceaad7c30 Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Wed, 16 Jan 2019 23:52:30 +0100 Subject: [PATCH 2/2] Ignore Safe variant suggestion of array_combine in FunctionListLoader.php --- phpstan.neon | 2 ++ 1 file changed, 2 insertions(+) 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