title: PHP Laravel Passing Model as function parameter
body: <p>I need to pass a model to a function, but seem that my solution is not correct because i receive below error from PHPStorm</p>
  <p><em>expects parameter of type Illuminate\Database\Eloquent\Model, string given.</em></p>
  <p>this an extract of my code:</p>
  <pre><code> /** Return the model structure
    *
    * @param \Illuminate\Database\Eloquent\Model $model
    * @param array $fillData
    * @return object
    */
  public static function fillBasicModelData(Model $model, $fillData){
   ...code...
  }
  </code></pre>
  <p>And below is how I call the function:</p>
  <pre><code>$result = self::fillBasicModelData(Filter::class, $emptyFilter);
  </code></pre>
  <p>Obviously Filter is an Illuminate\Database\Eloquent\Model</p>
  <p>so my question is how can I pass a model to a function without this warning?</p>
  <p>thank you</p>