From 3485f6177e397cd244484ec7f3325d0f27bfda9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 04:33:28 +0000 Subject: [PATCH 1/3] Update phpstan/phpstan requirement from ~1.10.3 to ~1.11.1 Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. - [Release notes](https://github.com/phpstan/phpstan/releases) - [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md) - [Commits](https://github.com/phpstan/phpstan/compare/1.10.3...1.11.1) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 67a7eac..cf3f972 100644 --- a/composer.json +++ b/composer.json @@ -23,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 || ^4.10", - "phpstan/phpstan": "~1.10.3", + "phpstan/phpstan": "~1.11.1", "symfony/finder": "^3.0 || ^4.0 || ^5.0 || ^6.0" }, "conflict": { From e9910327744d22c1dcf8318ff2a9982397ab864e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Tue, 9 Jul 2024 17:02:15 +0200 Subject: [PATCH 2/3] Update README.md file --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2814891..81d3863 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ PHP: PHP 7.2 or higher Magento: Magento 2.3.0 or higher -PHPStan: PHPStan 1.10 +PHPStan: PHPStan 1.11 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.10` and run: +installing this extension. in your composer.json Change the PHPStan version to `~1.11` and run: ``` composer update phpstan/phpstan --with-all-dependencies From 548663a767c471b23fd9acc08963789537c6abae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Tue, 9 Jul 2024 17:06:57 +0200 Subject: [PATCH 3/3] Fix typo in PHPStan config --- phpstan.neon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index bc46835..931cc8e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -41,13 +41,13 @@ parameters: message: '~is not covered by backward compatibility promise.~' path: tests/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloaderUnitTest.php - - message: '~Parameter #1 $argument of class ReflectionClass constructor expects class-string|MyUncachedExtension, string given~' + message: '~Parameter #1 \$argument of class ReflectionClass constructor expects class-string|MyUncachedExtension, string given~' path: tests/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloaderUnitTest.php - message: '~is not covered by backward compatibility promise.~' path: tests/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloaderUnitTest.php - - message: '~Parameter #1 $argument of class ReflectionClass constructor expects class-string|UncachedExtensionInterface, string given~' + message: '~Parameter #1 \$argument of class ReflectionClass constructor expects class-string|UncachedExtensionInterface, string given~' path: tests/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloaderUnitTest.php - message: '~bitExpert\\PHPStan\\Magento\\Rules\\Helper\\SampleModel::__construct\(\) does not call parent constructor~'