From 83c0675232a31e55fff4a3fecf5cf8fb0dc4afb8 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Fri, 24 May 2024 12:25:43 +0200 Subject: [PATCH 1/2] Update doctrine annotation --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9a8a1a9..d55ab2b 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "symfony/http-kernel": "^5.4|^6.4", "php-http/logger-plugin": "^1.1", "prometee/php-class-generator": "^1.0", - "doctrine/annotations": "^1.13", + "doctrine/annotations": "^1.13|^2.0", "webmozart/assert": "^1" }, "require-dev": { From 66c1f0ef524caaca4683e63911520747927589c4 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Fri, 24 May 2024 12:28:50 +0200 Subject: [PATCH 2/2] Update deprected phpstan config --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 9b7d2ad..bf149d7 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,5 @@ parameters: reportUnmatchedIgnoredErrors: false - checkMissingIterableValueType: false paths: - src @@ -10,6 +9,7 @@ parameters: - tests/Manager/ModelManagerTest.php ignoreErrors: + - identifier: missingType.iterableValue - '/Method FluxSE\\OdooApiClient\\Manager\\ModelListManager::(find|findBy|findByIds)\(\) should return (array<|\()T of FluxSE\\OdooApiClient\\Model\\BaseInterface(>|\)\|null) but returns mixed\./' - '/Method FluxSE\\OdooApiClient\\Serializer\\(Json|Xml)Rpc\\(Json|Xml)RpcSerializerHelper::decodeResponseBody\(\) should return array\|bool\|int\|string but returns mixed\./'