Closed nikolaystrikhar closed 1 year ago
PHPStan throws Call to an undefined method ::limit() when you do something like this. I checked and all builder methods there return $this, so I just did the same for these 2 methods.
Call to an undefined method ::limit()
$this
DB::table( 'posts' ) ->select( 'ID' ) ->whereNotExists( function ( QueryBuilder $builder ) { // whatever. } ) ->limit( 1 );
@estevao90 pinged me about it, so adding him to a conversation just in case :-)
Released as 1.0.5!
PHPStan throws
Call to an undefined method ::limit()
when you do something like this. I checked and all builder methods there return$this
, so I just did the same for these 2 methods.