Skip to content

Commit

Permalink
Merge pull request #90 from msmakouz/remove-unused-import
Browse files Browse the repository at this point in the history
Removing unused import
  • Loading branch information
msmakouz authored Sep 18, 2023
2 parents abd3c24 + 5af8987 commit 42ab4a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/TableInheritance.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Cycle\Annotated\Annotation\Inheritance;
use Cycle\Annotated\Exception\AnnotationException;
use Cycle\Annotated\Utils\EntityUtils;
use Cycle\Schema\Definition\Entity;
use Cycle\Schema\Definition\Entity as EntitySchema;
use Cycle\Schema\Definition\Inheritance\JoinedTable as JoinedTableInheritanceSchema;
use Cycle\Schema\Definition\Inheritance\SingleTable as SingleTableInheritanceSchema;
Expand Down Expand Up @@ -280,7 +279,7 @@ private function getOuterFields(
return $parent->getPrimaryFields();
}

private function getTableName(Entity $child, Registry $registry): string
private function getTableName(EntitySchema $child, Registry $registry): string
{
$parent = $this->findParent($registry, $this->utils->findParent($child->getClass(), false));

Expand All @@ -296,7 +295,7 @@ private function getTableName(Entity $child, Registry $registry): string
return \in_array($child->getClass(), $entities, true) ? $parent->getTableName() : $child->getTableName();
}

private function getDatabase(Entity $child, Registry $registry): ?string
private function getDatabase(EntitySchema $child, Registry $registry): ?string
{
$parent = $this->findParent($registry, $this->utils->findParent($child->getClass(), false));

Expand Down

0 comments on commit 42ab4a2

Please sign in to comment.