From 77e974614d2ead521f18069dccc571696f52b8dc Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 12 Dec 2021 23:07:53 +0000 Subject: [PATCH] Upgraded static analyzers --- phpstan.src.neon.dist | 1 - phpstan.tests.neon.dist | 4 ++-- vendor-bin/phpstan/composer.json | 8 ++++---- vendor-bin/psalm/composer.json | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/phpstan.src.neon.dist b/phpstan.src.neon.dist index d4e67757..b24cd57e 100644 --- a/phpstan.src.neon.dist +++ b/phpstan.src.neon.dist @@ -1,7 +1,6 @@ parameters: level: max ignoreErrors: - - '#Anonymous function should have native return typehint ".+".#' - '#Call to function is_string\(\) with string will always evaluate to true.#' - '#Variable \$defaults might not be defined.#' - '#Method Dotenv\\Regex\\Regex::split\(\) should return Dotenv\\Result\\Result\, string\> but returns Dotenv\\Result\\Result\, string\>.#' diff --git a/phpstan.tests.neon.dist b/phpstan.tests.neon.dist index 7c098678..721c9f8c 100644 --- a/phpstan.tests.neon.dist +++ b/phpstan.tests.neon.dist @@ -3,6 +3,6 @@ parameters: checkMissingIterableValueType: false ignoreErrors: - '#Parameter \#1 \$name of method Dotenv\\Repository\\RepositoryInterface::[a-z]+\(\) expects string, [a-z]+ given.#' - - '#no return typehint specified#' - - '#with no typehint#' + - '#no return type specified#' + - '#with no type#' - '#Call to deprecated method assertInternalType.+#' diff --git a/vendor-bin/phpstan/composer.json b/vendor-bin/phpstan/composer.json index bbf74fd0..125548df 100644 --- a/vendor-bin/phpstan/composer.json +++ b/vendor-bin/phpstan/composer.json @@ -1,10 +1,10 @@ { "require": { - "phpstan/phpstan": "0.12.99", + "phpstan/phpstan": "1.2.0", "phpstan/extension-installer": "1.1.0", - "phpstan/phpstan-deprecation-rules": "0.12.6", - "phpstan/phpstan-strict-rules": "0.12.11", - "thecodingmachine/phpstan-strict-rules": "0.12.1" + "phpstan/phpstan-deprecation-rules": "1.0.0", + "phpstan/phpstan-strict-rules": "1.1.0", + "thecodingmachine/phpstan-strict-rules": "1.0.0" }, "config": { "preferred-install": "dist" diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index 76c6bd32..72bd6bbf 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,6 +1,6 @@ { "require": { - "psalm/phar": "4.10.0" + "psalm/phar": "4.15.0" }, "config": { "preferred-install": "dist"