Skip to content

Commit 2b61283

Browse files
committed
fixed param comment
1 parent a165107 commit 2b61283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/MetaFormats/Validators/VString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class VString
1919
* Constructs a string validator.
2020
* @param int $minLength The minimal length of the string.
2121
* @param int $maxLength The maximal length of the string, or -1 for unlimited length.
22-
* @param mixed $regex Regex pattern used for validation. Evaluated with the preg_match function with this argument
23-
* as the pattern.
22+
* @param ?string $regex Regex pattern used for validation.
23+
* Evaluated with the preg_match function with this argument as the pattern.
2424
*/
2525
public function __construct(int $minLength = 0, int $maxLength = -1, ?string $regex = null)
2626
{

0 commit comments

Comments
 (0)