Skip to content

Commit

Permalink
Correctly handle string-backed enums for non-native PHP enums
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Apr 20, 2023
1 parent 9515181 commit 656a7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dto/DtoType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function isStringEnum(): bool
}
}

return $this->expressionType->equals(ExpressionType::enum()) && $isEveryPropertyString;
return $isEveryPropertyString;
}

public function isEmpty(): bool
Expand Down

0 comments on commit 656a7ce

Please sign in to comment.