diff --git a/composer.json b/composer.json index 28a3ece10..9db913af0 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "ext-json": "*", "murtukov/php-code-generator": "^0.1.5", "phpdocumentor/reflection-docblock": "^5.2", - "phpdocumentor/type-resolver": ">1.4.0,<1.6.0", + "phpdocumentor/type-resolver": "^1.4.0", "psr/log": "^1.0 || ^2.0 || ^3.0", "symfony/config": "^4.4.30 || ^5.3.7", "symfony/dependency-injection": "^4.4.30 || ^5.3.7", diff --git a/tests/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesserTest.php b/tests/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesserTest.php index a07b77933..cf21f0008 100644 --- a/tests/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesserTest.php +++ b/tests/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesserTest.php @@ -89,7 +89,7 @@ public function guessErrorDataProvider(): iterable yield ['mixed[]', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; yield ['array', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; yield ['', $reflectorClass, 'No @'.$tag.' tag found in doc block or tag has no type']; - yield ['[]', $reflectorClass, 'Doc Block parsing failed']; + yield ['[]', $reflectorClass, 'No @'.$tag.' tag found in doc block or tag has no type']; } }