diff --git a/composer.json b/composer.json index 680faba1..a9b688c4 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "symfony/property-info": "^7.4 || ^8.0", "symfony/property-access": "^7.4 || ^8.0", "symfony/type-info": "^7.4 || ^8.0", - "phpdocumentor/type-resolver": "^1.12", + "phpdocumentor/type-resolver": "^1.12 || ^2.0", "phpstan/phpdoc-parser": "^2.3" }, "require-dev": { diff --git a/tests/ObjectMapper/ObjectMapperTest.php b/tests/ObjectMapper/ObjectMapperTest.php index f43c0678..b49da15c 100644 --- a/tests/ObjectMapper/ObjectMapperTest.php +++ b/tests/ObjectMapper/ObjectMapperTest.php @@ -421,7 +421,7 @@ public function testMapInitializesLazyObject() $this->assertTrue($lazy->isLazyObjectInitialized()); } - #[RequiresPhp('>=8.4')] + #[RequiresPhp('>=8.4.0')] public function testMapInitializesNativePhp84LazyObject() { $initialized = false; @@ -549,7 +549,7 @@ public function testTransformCollection() $this->assertEquals([new TransformCollectionD('a'), new TransformCollectionD('b')], $transformed->foo); } - #[RequiresPhp('>=8.4')] + #[RequiresPhp('>=8.4.0')] public function testEmbedsAreLazyLoadedByDefault() { $this->markTestSkipped('Lazy Loading is not enable by default and works differently.');