From 6e9c1d8a4bc6958d9dd1b11204260d5efc41304a Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 21 Jun 2017 06:34:45 +0200 Subject: [PATCH] #5798 adding `void` test method return declaration, using `::class` reference over string reference --- tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php b/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php index 50ae0347f..1164ae219 100644 --- a/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php @@ -165,11 +165,11 @@ class SchemaToolTest extends OrmTestCase $this->assertTrue(current($indexes)->isPrimary(), "index should be primary"); } - public function testSetDiscriminatorColumnWithoutLength() + public function testSetDiscriminatorColumnWithoutLength() : void { $em = $this->_getTestEntityManager(); $schemaTool = new SchemaTool($em); - $metadata = $em->getClassMetadata(__NAMESPACE__ . '\\FirstEntity'); + $metadata = $em->getClassMetadata(FirstEntity::class); $metadata->setInheritanceType(ClassMetadata::INHERITANCE_TYPE_SINGLE_TABLE); $metadata->setDiscriminatorColumn(['name' => 'discriminator', 'type' => 'string']);