From f7ee2503fbea634f2e8c30170a8ad8bd0e3d378f Mon Sep 17 00:00:00 2001 From: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:13:05 -0400 Subject: [PATCH] minor #1508 [make:entity] (private) method param / return type hints --- src/Maker/MakeEntity.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index f87233fb9..421e875bc 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -340,6 +340,7 @@ public function configureDependencies(DependencyBuilder $dependencies, ?InputInt ORMDependencyBuilder::buildDependencies($dependencies); } + /** @param string[] $fields */ private function askForNextField(ConsoleStyle $io, array $fields, string $entityClass, bool $isFirstField): EntityRelation|ClassProperty|null { $io->writeln(''); @@ -772,7 +773,7 @@ function ($name) use ($targetClass) { return $relation; } - private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass) + private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass): string { $io->writeln('What type of relationship is this?'); @@ -855,6 +856,7 @@ private function regenerateEntities(string $classOrNamespace, bool $overwrite, G $regenerator->regenerateEntities($classOrNamespace); } + /** @return string[] */ private function getPropertyNames(string $class): array { if (!class_exists($class)) { @@ -871,6 +873,7 @@ private function getEntityNamespace(): string return $this->doctrineHelper->getEntityNamespace(); } + /** @return string[] */ private function getTypesMap(): array { return Type::getTypesMap();