diff --git a/Tests/Extractor/PhpStanExtractorTest.php b/Tests/Extractor/PhpStanExtractorTest.php index ba37881..0d77497 100644 --- a/Tests/Extractor/PhpStanExtractorTest.php +++ b/Tests/Extractor/PhpStanExtractorTest.php @@ -1043,7 +1043,7 @@ public static function allowPrivateAccessProvider(): array public function testGenericInterface() { $this->assertEquals( - Type::generic(Type::object(\BackedEnum::class), Type::string()), + Type::generic(Type::enum(\BackedEnum::class), Type::string()), $this->extractor->getType(Dummy::class, 'genericInterface'), ); } diff --git a/composer.json b/composer.json index 70a57ef..c033ca5 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require": { "php": ">=8.2", "symfony/string": "^6.4|^7.0", - "symfony/type-info": "^7.1" + "symfony/type-info": "~7.1.9|^7.2.2" }, "require-dev": { "symfony/serializer": "^6.4|^7.0",