laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
177 stars 7 forks source link

[Bug]: Blade directive `@else` within `@session`/`@endsession` not recognized correctly #1060

Open FeBe95 opened 2 months ago

FeBe95 commented 2 months ago

Bug description

When using @else inside the new @session directive, two incorrect warnings get reported:

grafik

Reported warnings:

grafik

Laravel docs: https://laravel.com/docs/11.x/blade#session-directives

The @session directive was added to Laravel Idea some months ago:

Plugin version

8.2.5.242

Operating system

Windows

Steps to reproduce

  1. Put this code into any blade file:
    @session('status')
        <div class="p-4 bg-green-100">
            {{ $value }}
        </div>
    @else
        No status
    @endsession
  2. Look at reported problems

Relevant log output

No response