It looks like it uses the selection when you would replace the start and end tags of a element.
But somehow applied to the @if directive.

When I remove one of the items in the @props the issue is gone.
Same when I remove the <span> or <div> after the @endif it is gone for this specific if clause.
It is very specifc to this configuration somehow. Adding some new lines or removing some can "fix" it.
I only have the Laravel (v1.7.0) extension and PHP devsense (v1.71.19014) extension active.
This is the test case where I could reproduce it.
@props([
'a',
'b',
'c',
])
----
@if (true)
{{ 'lorem' }}
@endif
<div>
{{ 'ipsum' }}
</div>
----
@if (true)
<div>
{{ 'lorem' }}
</div>
@endif
<div>
{{ 'ipsum' }}
</div>