Skip to content

Commit

Permalink
fixed regression on empty string default values
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadariaga committed Nov 29, 2023
1 parent 88398e1 commit ccbee70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EntityGeneratorBundle/Doctrine/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ public function toString(string $nlLeftPad = ''): string
: 'false';
break;
case 'string':
if (!empty($this->defaultValue)) {
$defaultValue = '\'' . $this->defaultValue . '\'';
}
$defaultValue = '\'' . $this->defaultValue . '\'';
break;
default:
$defaultValue = !is_null($this->defaultValue)
Expand Down

0 comments on commit ccbee70

Please sign in to comment.