From cdc76567d486fb7e6403c57e9e5184f7599b659a Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Thu, 3 Nov 2022 11:55:52 +0100 Subject: [PATCH] fix: larastan v1 incompatible with phpstan v1.9.0 (#3665) We can't update to larastan v2 until we update to laravel v9 which has to wait for Flarum v2, so we need to stay on phpstan v1.8 Signed-off-by: Sami Mazouz --- composer.json | 2 +- php-packages/phpstan/composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index dc3c8ada7..e425a72bd 100644 --- a/composer.json +++ b/composer.json @@ -140,7 +140,7 @@ "require-dev": { "mockery/mockery": "^1.4", "phpunit/phpunit": "^9.0", - "phpstan/phpstan": "^1.2", + "phpstan/phpstan": ">=1.8.11 < 1.9.0", "nunomaduro/larastan": "^1.0" }, "config": { diff --git a/php-packages/phpstan/composer.json b/php-packages/phpstan/composer.json index a5bbee220..0509ab527 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.2", + "phpstan/phpstan": ">=1.8.11 < 1.9.0", "nunomaduro/larastan": "^1.0" }, "autoload": {