title: Laravel local scope intellisense
body: <p>i'm using local scope functions in laravel (<a href="https://laravel.com/docs/8.x/eloquent#local-scopes" rel="nofollow noreferrer">https://laravel.com/docs/8.x/eloquent#local-scopes</a>)<br />
  Especially i'm using laravel_ide_helper 4.3.2 and laravel 5.3 (Updating is <em>not an option</em>)</p>
  <p>Let's say i have a user class like that:</p>
  <pre class="lang-php prettyprint-override"><code>class User extends Model {
  
      //other things here such as constructor ...
  
      public static function scopePopular($query)
      {
          return $query-&gt;Where('ispopular', true);
      }
  }
  </code></pre>
  <p>Now lets say that i have a controller method where i do:</p>
  <pre class="lang-php prettyprint-override"><code>public function GetPopularOnes(){
       return User::popular()-&gt;get();
  }
  </code></pre>
  <p>Intellisense here works</p>
  <p>Now take a look at this:</p>
  <pre class="lang-php prettyprint-override"><code>public function GetPopularOnesSmall(){
       return User::select(['name', 'surname'])-&gt;popular()-&gt;get();
  }
  </code></pre>
  <p>In this intellisense still works.</p>
  <p>Again, look at this:</p>
  <pre class="lang-php prettyprint-override"><code>public function GetPopularWomans(){
       return User::query()-&gt;where('gender', 'f')-&gt;popular();
  }
  </code></pre>
  <p>In this intellisense <strong>does not work</strong>, but i'm sure that's right (or at least works).</p>
  <p>So, my questions are:</p>
  <ul>
  <li>Is that working in newer versions of laravel/helper?</li>
  <li>Is there any known workaround?</li>
  </ul>
  <p>Thankyou in advance.</p>