Skip to content

Commit

Permalink
docs: fixed dimensions typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-perri committed Nov 5, 2024
1 parent e6857ae commit 5a844f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public static function digitsBetween(int $min, int $max): string
* like *3/2* or a float like *1.5*.
*
* @link https://laravel.com/docs/11.x/validation#rule-dimensions
* @param array<string, int|float> $constraints
* @param array<string, int|float|string> $constraints
*/
public static function dimensions(array $constraints = []): Dimensions
{
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function digitsBetween(int $min, int $max): self
* pass a callback which accepts a {@see \Illuminate\Validation\Rules\Dimensions} instance.
*
* @link https://laravel.com/docs/11.x/validation#rule-dimensions
* @param array<string, int|float> $constraints
* @param array<string, int|float|string> $constraints
* @param ?callable(\Illuminate\Validation\Rules\Dimensions): (\Illuminate\Validation\Rules\Dimensions|void) $modifier
*/
public function dimensions(array $constraints = [], ?callable $modifier = null): self
Expand Down

0 comments on commit 5a844f7

Please sign in to comment.