From 5274b021def966ee3475b5679678de005c0d1395 Mon Sep 17 00:00:00 2001 From: Mathias Arlaud Date: Wed, 11 Dec 2024 16:52:17 +0100 Subject: [PATCH 1/2] [PropertyInfo] Fix generic enum test --- Tests/Extractor/PhpStanExtractorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ); } From 15937b8e6198f7569590bca76c553b57085b01b4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 12 Dec 2024 09:52:07 +0100 Subject: [PATCH 2/2] bump lowest required TypeInfo component version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",