blade-formatter
blade-formatter copied to clipboard
[Formatting Bug]: Error when formatting commented @if in @php block
Version
1.41.0
Template before formatting
<div>
<p>Some normal HTML</p>
@php
//@if ($x)
//@endif
@endphp
</div>
Template after formatting
<div>
<p>Some normal HTML</p>
@php
//@if ($x)
//@endif
@endphp
</div>
Expected Behaviour
Formatter don't throw an error and align <p>
tag properly.
Relevant log output
No response
The same problem occurs for commented @foreach
block