We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9e08a commit ab03675Copy full SHA for ab03675
src/Maker/MakeEntity.php
@@ -440,16 +440,15 @@ private function printAvailableTypes(ConsoleStyle $io)
440
$printSection($allTypes);
441
}
442
443
- /**
444
- * @return ManagerRegistry
445
- */
446
- private function getRegistry()
+ private function getRegistry(): ManagerRegistry
447
{
448
// this should never happen: we will have checked for the
449
// DoctrineBundle dependency before calling this
450
if (null === $this->registry) {
451
throw new \Exception('Somehow the doctrine service is missing. Is DoctrineBundle installed?');
452
+
+ return $this->registry;
453
454
455
private function createEntityClassQuestion(string $questionText): Question
0 commit comments