From 906f5a2ea3253d37eb29aae830ea6d77eb8f3fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Mon, 23 May 2022 18:51:25 +0200 Subject: [PATCH] Upgrade to PHPStan 1.7 --- README.md | 4 ++-- composer.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 24fee167..c4d8a518 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ PHP: PHP 7.2 or higher Magento: Magento 2.3.0 or higher -PHPStan: PHPStan 1.6 +PHPStan: PHPStan 1.7 If you are using a Magento version that requires an older version of PHPStan (e.g. 0.12.77), you need to manually upgrade it before -installing this extension. in your composer.json Change the PHPStan version to `~1.6` and run: +installing this extension. in your composer.json Change the PHPStan version to `~1.7` and run: ``` composer update phpstan/phpstan --with-all-dependencies diff --git a/composer.json b/composer.json index 3d2b6a7a..5b4c2d59 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,8 @@ "sort-packages": true, "allow-plugins": { "phpstan/extension-installer": true, - "captainhook/plugin-composer": true + "captainhook/plugin-composer": true, + "magento/composer-dependency-version-audit-plugin": false } }, "license": "MIT", @@ -22,7 +23,7 @@ "php": "^7.2.0 || ^8.1.0", "ext-dom": "*", "laminas/laminas-code": "~3.3.0 || ~3.4.1 || ~3.5.1 || ~4.5.0", - "phpstan/phpstan": "^1.6.2", + "phpstan/phpstan": "~1.7.0", "symfony/finder": "^3.0 || ^4.0 || ^5.0 || ^6.0" }, "conflict": {