Skip to content

Commit dfde682

Browse files
use correct typehint for callable
1 parent c6893fc commit dfde682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Valitron/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ public function hasValidator($name)
12291229
/**
12301230
* Convenience method to add a single validation rule
12311231
*
1232-
* @param string|callback $rule
1232+
* @param string|callable $rule
12331233
* @param array|string $fields
12341234
* @return Validator
12351235
* @throws \InvalidArgumentException

0 commit comments

Comments
 (0)