Skip to content

Commit

Permalink
[phalcon#16019] - adding test to check volt double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Aug 8, 2022
1 parent 2997c82 commit 99925b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,11 @@ private function getVoltCompileString(): array
"{{ [1, 2]|join(',') }}",
"<?= join(',', [1, 2]) ?>",
],
// Issue: 16019
[
"{{ readonly|default(false) ? 'readonly=\"readonly\"' : '' }}",
'<?= ((empty($readonly) ? (false) : ($readonly)) ? \'readonly="readonly"\' : \'\') ?>',
],
];
}

Expand Down

0 comments on commit 99925b1

Please sign in to comment.