diff --git a/php-packages/phpstan/composer.json b/php-packages/phpstan/composer.json index 0509ab5272..bfff874e67 100644 --- a/php-packages/phpstan/composer.json +++ b/php-packages/phpstan/composer.json @@ -4,7 +4,7 @@ "minimum-stability": "dev", "license": "MIT", "require": { - "phpstan/phpstan": ">=1.8.11 < 1.9.0", + "phpstan/phpstan": "^1.9", "nunomaduro/larastan": "^1.0" }, "autoload": { diff --git a/php-packages/phpstan/phpstan-baseline.neon b/php-packages/phpstan/phpstan-baseline.neon index c6fbed8ed6..b7b405cc1f 100644 --- a/php-packages/phpstan/phpstan-baseline.neon +++ b/php-packages/phpstan/phpstan-baseline.neon @@ -9,12 +9,12 @@ parameters: reportUnmatched: false # We ignore this because resolve can either take a class name as the generic return type or just a binding name. - - message: "#Template type T of function resolve[()]{2} is not referenced in a parameter.#" + - message: '#Template type T of function resolve\(\) is not referenced in a parameter.#' reportUnmatched: false # We ignore new static errors because we want extensibility. # @TODO: needs discussion. - - message: "#^Unsafe usage of new static[()]{2}.$#" + - message: '#^Unsafe usage of new static\(\).$#' reportUnmatched: false # ConnectionInterface lacks methods that exist in the implementation,