Skip to content

Commit

Permalink
Reuse number method in HasDigitsTokens::numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rudashi committed Jun 23, 2024
1 parent 709e535 commit e444b44
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Concerns/HasDigitsTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ public function number(int $min = 0, int $max = 9): FluentBuilder
/**
* Adds a numbers.
*/
public function numbers(): FluentBuilder
public function numbers(int $min = 0, int $max = 9): FluentBuilder
{
$this->pushToPattern('[0-9]+');

return $this;
return $this->number($min, $max)->oneOrMore();
}

/**
Expand Down

0 comments on commit e444b44

Please sign in to comment.