Larastan: variadic query builder methods fail (groupBy)

Created on 28 Oct 2019  路  1Comment  路  Source: nunomaduro/larastan

  • Larastan Version: 0.4.3
  • --level used: max

Description

I am getting the following false positive:

Method Illuminate\Database\Eloquent\Builder::groupBy() invoked with 2 parameters, 0-1 required.

Laravel code where the issue was found

Model::query()->groupBy('day', 'type');

I suspect this has something to do with larastan since the following raw PHP example works: https://phpstan.org/r/d2cf11d7-bd8a-4061-bd2f-120128c38cb1

bug false positive

Most helpful comment

Thank you for reporting this!

I know what's causing this. I'll fix it :+1:

>All comments

Thank you for reporting this!

I know what's causing this. I'll fix it :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tranba picture tranba  路  4Comments

Braunson picture Braunson  路  4Comments

spaceemotion picture spaceemotion  路  4Comments

zlodes picture zlodes  路  3Comments

fico7489 picture fico7489  路  3Comments