Skip to content

Commit 45aa085

Browse files
Add bool type to the $peekAhead parameter
All usages are compatible with the bool type, so the parameter is typed as bool and the cast is removed.
1 parent 8c531e4 commit 45aa085

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,9 @@ public function first(): ?Model
688688
*
689689
* @return $this
690690
*/
691-
public function peekAhead($peekAhead = true): static
691+
public function peekAhead(bool $peekAhead = true): static
692692
{
693-
$this->peekAhead = (bool) $peekAhead;
693+
$this->peekAhead = $peekAhead;
694694

695695
return $this;
696696
}

0 commit comments

Comments
 (0)