From edbf3076e2b23a2c696de01bd9f39faa643c05f4 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 16 Apr 2024 23:19:38 +0200 Subject: [PATCH] Avoid calling deprecated Type::getName() (#6359) Follow-up to #6358 (@sbuerk): `getName()` is gone on 4.0.x. This change will make merging this test up easier for us. --- tests/Functional/Schema/PostgreSQLSchemaManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Functional/Schema/PostgreSQLSchemaManagerTest.php b/tests/Functional/Schema/PostgreSQLSchemaManagerTest.php index 8e9223a910f..c604ce10b0f 100644 --- a/tests/Functional/Schema/PostgreSQLSchemaManagerTest.php +++ b/tests/Functional/Schema/PostgreSQLSchemaManagerTest.php @@ -310,7 +310,7 @@ public function testJsonDefaultValue(): void $columns = $this->schemaManager->listTableColumns('test_json'); - self::assertSame(Types::JSON, $columns['foo']->getType()->getName()); + self::assertSame(Type::getType(Types::JSON), $columns['foo']->getType()); self::assertSame('{"key": "value with a single quote \' in string value"}', $columns['foo']->getDefault()); }