diff --git a/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php b/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php index 91ddbce1..e7f503d1 100644 --- a/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php +++ b/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php @@ -239,13 +239,7 @@ private function getAssociationTables(array $classes, AbstractPlatform $platform return $associationTables; } - /** - * @param ClassMetadata $class - * @param AbstractPlatform $platform - * - * @return string - */ - private function getTableName($class, $platform) : string + private function getTableName(ClassMetadata $class, AbstractPlatform $platform) : string { if (isset($class->table['schema']) && ! method_exists($class, 'getSchemaName')) { return $class->table['schema'] . '.' . $this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform); diff --git a/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerTest.php b/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerTest.php index de918881..c87b2f9d 100644 --- a/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerTest.php +++ b/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerTest.php @@ -67,7 +67,7 @@ public function testGetDeleteFromTableSQL() : void $method = $class->getMethod('getTableName'); $method->setAccessible(true); $tableName = $method->invokeArgs($purger, [$metadata, $platform]); - $method = $class->getMethod('getDeleteFromTableSQL'); + $method = $class->getMethod('getDeleteFromTableSQL'); $method->setAccessible(true); $sql = $method->invokeArgs($purger, [$tableName, $platform]); $this->assertEquals('DELETE FROM "Group"', $sql); @@ -83,7 +83,7 @@ public function testGetDeleteFromTableSQLWithSchema() : void $method = $class->getMethod('getTableName'); $method->setAccessible(true); $tableName = $method->invokeArgs($purger, [$metadata, $platform]); - $method = $class->getMethod('getDeleteFromTableSQL'); + $method = $class->getMethod('getDeleteFromTableSQL'); $method->setAccessible(true); $sql = $method->invokeArgs($purger, [$tableName, $platform]); $this->assertEquals('DELETE FROM test_schema__group', $sql);