Got a new one for you 😅
Fails:
<?php
function foo() {
$options = ['hi'];
?>
<div>
<div>
<select>
<option>Nothing</option>
<?php foreach ($options as $option): ?>
<option>
<?= $option ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<?php
}
Works:
<?php
function foo() {
$options = ['hi'];
?>
<div>
<select>
<option>Nothing</option>
<?php foreach ($options as $option): ?>
<option>
<?= $option ?>
</option>
<?php endforeach; ?>
</select>
</div>
<?php
}
(removed one level of divs)
This one seems to have been introduced somewhat recently - code that was formatted before is getting mangled as I save it now. I'm on the pre-release branch in VSCode.