From 06e8ff94a2659f4cc5254e861dfd9fbd7b3eb075 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Tue, 31 Dec 2024 10:22:49 +0100 Subject: [PATCH 1/2] allow doctrine/persistence v4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e8bfd93..9c1e235 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "ext-ctype": "*", "doctrine/collections": "^2.0.0", "doctrine/inflector": "^2.0.4", - "doctrine/persistence": "^3.0.0", + "doctrine/persistence": "^3.4.0 || ^4.0.0", "laminas/laminas-hydrator": "^4.13.0", "laminas/laminas-stdlib": "^3.14.0" }, From 13c5898098134dfc1eb2ced07d7d428d65edff6a Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Tue, 31 Dec 2024 10:35:12 +0100 Subject: [PATCH 2/2] fixed PHPStan issue --- phpstan.neon | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index a84925a..5f5383f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,8 +10,11 @@ parameters: - identifier: method.alreadyNarrowedType - - message: '#expects .*Collection<\(int\|string\), object>, .*ArrayCollection given#' + message: "#expects .*Collection<\\(int\\|string\\), object>, .*ArrayCollection given#" path: tests/DoctrineObjectTest.php - - message: '#Unable to resolve the template type T in call to method Doctrine\\Laminas\\Hydrator\\DoctrineObject::tryConvertArrayToObject\(\)#' + message: "#Unable to resolve the template type T in call to method .*DoctrineObject::tryConvertArrayToObject\\(\\)#" + path: src/DoctrineObject.php + - + message: "#Call to function method_exists\\(\\) with ReflectionClass and 'isReadOnly' will always evaluate to true#" path: src/DoctrineObject.php