@@ -340,6 +340,7 @@ public function configureDependencies(DependencyBuilder $dependencies, ?InputInt
340
340
ORMDependencyBuilder::buildDependencies ($ dependencies );
341
341
}
342
342
343
+ /** @param string[] $fields */
343
344
private function askForNextField (ConsoleStyle $ io , array $ fields , string $ entityClass , bool $ isFirstField ): EntityRelation |ClassProperty |null
344
345
{
345
346
$ io ->writeln ('' );
@@ -772,7 +773,7 @@ function ($name) use ($targetClass) {
772
773
return $ relation ;
773
774
}
774
775
775
- private function askRelationType (ConsoleStyle $ io , string $ entityClass , string $ targetEntityClass )
776
+ private function askRelationType (ConsoleStyle $ io , string $ entityClass , string $ targetEntityClass ): string
776
777
{
777
778
$ io ->writeln ('What type of relationship is this? ' );
778
779
@@ -855,6 +856,7 @@ private function regenerateEntities(string $classOrNamespace, bool $overwrite, G
855
856
$ regenerator ->regenerateEntities ($ classOrNamespace );
856
857
}
857
858
859
+ /** @return string[] */
858
860
private function getPropertyNames (string $ class ): array
859
861
{
860
862
if (!class_exists ($ class )) {
@@ -871,6 +873,7 @@ private function getEntityNamespace(): string
871
873
return $ this ->doctrineHelper ->getEntityNamespace ();
872
874
}
873
875
876
+ /** @return string[] */
874
877
private function getTypesMap (): array
875
878
{
876
879
return Type::getTypesMap ();
0 commit comments