From 7ec22b3f235e47fe4d41539f177520ebe103ac1d Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Fri, 18 Nov 2022 13:03:42 +0100 Subject: [PATCH 1/2] drop container-interop/container-interop --- composer.json | 2 +- docs/en/authentication.rst | 2 +- src/Service/AbstractFactory.php | 2 +- src/Service/Authentication/AdapterFactory.php | 2 +- src/Service/Authentication/AuthenticationServiceFactory.php | 2 +- src/Service/Authentication/StorageFactory.php | 2 +- src/Service/CacheFactory.php | 2 +- src/Service/CliFactory.php | 2 +- src/Service/DriverFactory.php | 2 +- src/Service/EventManagerFactory.php | 2 +- src/ServiceFactory/AbstractDoctrineServiceFactory.php | 2 +- src/Validator/Service/AbstractValidatorFactory.php | 2 +- src/Validator/Service/NoObjectExistsFactory.php | 2 +- src/Validator/Service/ObjectExistsFactory.php | 2 +- src/Validator/Service/UniqueObjectFactory.php | 2 +- tests/Validator/Service/NoObjectExistsFactoryTest.php | 2 +- tests/Validator/Service/ObjectExistsFactoryTest.php | 2 +- tests/Validator/Service/UniqueObjectFactoryTest.php | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/composer.json b/composer.json index 617fe8ff..6b67180d 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,6 @@ "homepage": "http://www.doctrine-project.org/", "require": { "php": "^7.4 || ~8.0.0 || ~8.1.0", - "container-interop/container-interop": "^1.2.0", "doctrine/annotations": "^1.13.2", "doctrine/cache": "^1.12.1", "doctrine/collections": "^1.6.8", @@ -55,6 +54,7 @@ "laminas/laminas-servicemanager": "^3.10.0", "laminas/laminas-stdlib": "^3.7.1", "laminas/laminas-validator": "^2.16.0", + "psr/container": "^1.1.2", "symfony/console": "^5.4.3 || ^6.0.3" }, "require-dev": { diff --git a/docs/en/authentication.rst b/docs/en/authentication.rst index a461de45..0fb58861 100644 --- a/docs/en/authentication.rst +++ b/docs/en/authentication.rst @@ -187,7 +187,7 @@ factories as in the example below: Date: Fri, 18 Nov 2022 13:16:39 +0100 Subject: [PATCH 2/2] suppress PhpStan error for laminas-cache interfaces laminas-cache has change signatures from 3.6.0 to 3.8.0 by added the mixed type. This causes troubles for PhpStan, which identifies the mixed type being missing when executed with PHP 8.1. Ignoring these errors for now to keep compatibility with PHP 7.4. --- phpstan.neon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index fa61ab43..9b9cf836 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,6 +4,10 @@ parameters: paths: - src - tests + ignoreErrors: + - + message: '#internal(G|S)etItem\(\) has parameter \$(casToken|value) with no type specified#' + path: src/Cache/DoctrineCacheStorage.php includes: - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon