Skip to content

Commit

Permalink
Merge pull request #5 from phpform-dev/fix-issue-missing-toArray
Browse files Browse the repository at this point in the history
FIX: The issue with using toArray instead of JsonSerialize
  • Loading branch information
sdkfuyr committed Jan 22, 2024
2 parents 1b6b925 + 6b03922 commit 1d9ee6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
{% if formFieldEntity is defined %}
formFieldEntity = {{ formFieldEntity.toArray()|json_encode(constant('JSON_PRETTY_PRINT'))|raw }};
formFieldEntity = {{ formFieldEntity|json_encode(constant('JSON_PRETTY_PRINT'))|raw }};
if (formFieldEntity.validations === undefined) {
formFieldEntity.validations = [];
Expand Down

0 comments on commit 1d9ee6b

Please sign in to comment.