diff --git a/src/Symfony/Bridge/Doctrine/CHANGELOG.md b/src/Symfony/Bridge/Doctrine/CHANGELOG.md index f4ca310235228..4c6e029b5d33c 100644 --- a/src/Symfony/Bridge/Doctrine/CHANGELOG.md +++ b/src/Symfony/Bridge/Doctrine/CHANGELOG.md @@ -4,7 +4,6 @@ CHANGELOG 7.1 --- - * Deprecate the `DoctrineExtractor::getTypes()` method, use `DoctrineExtractor::getType()` instead * Allow `EntityValueResolver` to return a list of entities * Add support for auto-closing idle connections * Allow validating every class against `UniqueEntity` constraint diff --git a/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php b/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php index 02b29ae9942d9..cf32c6c537b02 100644 --- a/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php +++ b/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php @@ -161,13 +161,8 @@ public function getType(string $class, string $property, array $context = []): ? }; } - /** - * @deprecated since Symfony 7.1, use "getType" instead - */ public function getTypes(string $class, string $property, array $context = []): ?array { - trigger_deprecation('symfony/property-info', '7.1', 'The "%s()" method is deprecated, use "%s::getType()" instead.', __METHOD__, self::class); - if (null === $metadata = $this->getMetadata($class)) { return null; } diff --git a/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php b/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php index c0ab3e1c63783..90cd6b97b9237 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php @@ -108,8 +108,6 @@ public function testTestGetPropertiesWithEmbedded() } /** - * @group legacy - * * @dataProvider legacyTypesProvider */ public function testExtractLegacy(string $property, ?array $type = null) @@ -117,9 +115,6 @@ public function testExtractLegacy(string $property, ?array $type = null) $this->assertEquals($type, $this->createExtractor()->getTypes(DoctrineDummy::class, $property, [])); } - /** - * @group legacy - */ public function testExtractWithEmbeddedLegacy() { $expectedTypes = [new LegacyType( @@ -137,9 +132,6 @@ public function testExtractWithEmbeddedLegacy() $this->assertEquals($expectedTypes, $actualTypes); } - /** - * @group legacy - */ public function testExtractEnumLegacy() { $this->assertEquals([new LegacyType(LegacyType::BUILTIN_TYPE_OBJECT, false, EnumString::class)], $this->createExtractor()->getTypes(DoctrineEnum::class, 'enumString', [])); @@ -149,9 +141,6 @@ public function testExtractEnumLegacy() $this->assertNull($this->createExtractor()->getTypes(DoctrineEnum::class, 'enumCustom', [])); } - /** - * @group legacy - */ public static function legacyTypesProvider(): array { // DBAL 4 has a special fallback strategy for BINGINT (int -> string) @@ -251,9 +240,6 @@ public function testGetPropertiesCatchException() $this->assertNull($this->createExtractor()->getProperties('Not\Exist')); } - /** - * @group legacy - */ public function testGetTypesCatchExceptionLegacy() { $this->assertNull($this->createExtractor()->getTypes('Not\Exist', 'baz'));