File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2107,16 +2107,12 @@ public function withSuffix(string $suffix): self
21072107
21082108 public function getLimit (): int
21092109 {
2110- return $ this ->getSetLimit ();
2110+ return $ this ->getSetLimit () ?? $ this -> getDefaultLimit () ?? $ this -> connection -> getDefaultLimit () ;
21112111 }
21122112
2113- public function getSetLimit (): int
2113+ public function getSetLimit (): ? int
21142114 {
2115- // If a limit was explicitly set we use that over the defaults.
2116- return $ this ->limit
2117- ?? $ this ->options ()->get ('limit ' )
2118- ?? $ this ->getDefaultLimit ()
2119- ?? $ this ->connection ->getDefaultLimit ();
2115+ return $ this ->options ()->get ('limit ' , $ this ->limit ) ?? null ;
21202116 }
21212117
21222118 public function getDefaultLimit (): ?int
You can’t perform that action at this time.
0 commit comments