@@ -1513,7 +1513,7 @@ public function orderBy(string $orderBy, string $direction = '', ?bool $escape =
15131513 */
15141514 public function limit (?int $ value = null , ?int $ offset = 0 )
15151515 {
1516- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
1516+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
15171517 if ($ limitZeroAsAll && $ value === 0 ) {
15181518 $ value = null ;
15191519 }
@@ -1635,7 +1635,7 @@ protected function compileFinalQuery(string $sql): string
16351635 */
16361636 public function get (?int $ limit = null , int $ offset = 0 , bool $ reset = true )
16371637 {
1638- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
1638+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
16391639 if ($ limitZeroAsAll && $ limit === 0 ) {
16401640 $ limit = null ;
16411641 }
@@ -1773,7 +1773,7 @@ public function getWhere($where = null, ?int $limit = null, ?int $offset = 0, bo
17731773 $ this ->where ($ where );
17741774 }
17751775
1776- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
1776+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
17771777 if ($ limitZeroAsAll && $ limit === 0 ) {
17781778 $ limit = null ;
17791779 }
@@ -2500,7 +2500,7 @@ public function update($set = null, $where = null, ?int $limit = null): bool
25002500 $ this ->where ($ where );
25012501 }
25022502
2503- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
2503+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
25042504 if ($ limitZeroAsAll && $ limit === 0 ) {
25052505 $ limit = null ;
25062506 }
@@ -2547,7 +2547,7 @@ protected function _update(string $table, array $values): string
25472547 $ valStr [] = $ key . ' = ' . $ val ;
25482548 }
25492549
2550- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
2550+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
25512551 if ($ limitZeroAsAll ) {
25522552 return 'UPDATE ' . $ this ->compileIgnore ('update ' ) . $ table . ' SET ' . implode (', ' , $ valStr )
25532553 . $ this ->compileWhereHaving ('QBWhere ' )
@@ -2824,7 +2824,7 @@ public function delete($where = '', ?int $limit = null, bool $resetData = true)
28242824
28252825 $ sql = $ this ->_delete ($ this ->removeAlias ($ table ));
28262826
2827- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
2827+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
28282828 if ($ limitZeroAsAll && $ limit === 0 ) {
28292829 $ limit = null ;
28302830 }
@@ -3099,7 +3099,7 @@ protected function compileSelect($selectOverride = false): string
30993099 . $ this ->compileWhereHaving ('QBHaving ' )
31003100 . $ this ->compileOrderBy ();
31013101
3102- $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ;
3102+ $ limitZeroAsAll = config (Feature::class)->limitZeroAsAll ?? true ; // @phpstan-ignore nullCoalesce.property
31033103 if ($ limitZeroAsAll ) {
31043104 if ($ this ->QBLimit ) {
31053105 $ sql = $ this ->_limit ($ sql . "\n" );
0 commit comments