Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Sep 17, 2023
1 parent 73cf9ac commit 4af35eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Console/Command/MakeFormParamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function getSetterTemplate(array $info): string
/**
* Set the $cleanName value
* @param string \$$name
* @return self
* @return \$this
*/
public function $setterName(string \$$name): self
{
Expand Down Expand Up @@ -279,8 +279,9 @@ public function $getterName(): string
protected function getFromEntityBody(string $content): string
{
$result = '';
$templateEntity = '@template TEntity as Entity';
$templateEntity = '';
if ($this->createInstanceFormEntity && !empty($this->fromEntityMaps)) {
$templateEntity = '@template TEntity as Entity';
$result = <<<EOF
/**
* @param TEntity \$entity
Expand Down

0 comments on commit 4af35eb

Please sign in to comment.