We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c255139 commit b7d24b5Copy full SHA for b7d24b5
src/Database/Validator/Label.php
@@ -4,7 +4,11 @@
4
5
class Label extends Key
6
{
7
- protected string $message = 'Value must be a valid string between 1 and ' . self::KEY_MAX_LENGTH . ' chars containing only alphanumeric chars';
+ public function __construct(bool $allowInternal = false, int $maxLength = 255)
8
+ {
9
+ parent::__construct($allowInternal, $maxLength);
10
+ $this->message = 'Value must be a valid string between 1 and ' . $this->maxLength . ' chars containing only alphanumeric chars';
11
+ }
12
13
/**
14
* Is valid.
0 commit comments