Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:entity] (private) method param / return type hints #1508

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Maker/MakeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -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?');

Expand Down Expand Up @@ -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)) {
Expand All @@ -871,6 +873,7 @@ private function getEntityNamespace(): string
return $this->doctrineHelper->getEntityNamespace();
}

/** @return string[] */
private function getTypesMap(): array
{
return Type::getTypesMap();
Expand Down
Loading