Skip to content

Commit ab03675

Browse files
committed
fixing missing return type
1 parent cf9e08a commit ab03675

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Maker/MakeEntity.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,16 +440,15 @@ private function printAvailableTypes(ConsoleStyle $io)
440440
$printSection($allTypes);
441441
}
442442

443-
/**
444-
* @return ManagerRegistry
445-
*/
446-
private function getRegistry()
443+
private function getRegistry(): ManagerRegistry
447444
{
448445
// this should never happen: we will have checked for the
449446
// DoctrineBundle dependency before calling this
450447
if (null === $this->registry) {
451448
throw new \Exception('Somehow the doctrine service is missing. Is DoctrineBundle installed?');
452449
}
450+
451+
return $this->registry;
453452
}
454453

455454
private function createEntityClassQuestion(string $questionText): Question

0 commit comments

Comments
 (0)