Update to Kirby 5
This commit is contained in:
parent
5d9979fca8
commit
0fefc5e2e1
472 changed files with 30853 additions and 10301 deletions
|
@ -79,10 +79,10 @@ return [
|
|||
$this->minlength &&
|
||||
V::minLength(strip_tags($value), $this->minlength) === false
|
||||
) {
|
||||
throw new InvalidArgumentException([
|
||||
'key' => 'validation.minlength',
|
||||
'data' => ['min' => $this->minlength]
|
||||
]);
|
||||
throw new InvalidArgumentException(
|
||||
key: 'validation.minlength',
|
||||
data: ['min' => $this->minlength]
|
||||
);
|
||||
}
|
||||
},
|
||||
'maxlength' => function ($value) {
|
||||
|
@ -90,10 +90,10 @@ return [
|
|||
$this->maxlength &&
|
||||
V::maxLength(strip_tags($value), $this->maxlength) === false
|
||||
) {
|
||||
throw new InvalidArgumentException([
|
||||
'key' => 'validation.maxlength',
|
||||
'data' => ['max' => $this->maxlength]
|
||||
]);
|
||||
throw new InvalidArgumentException(
|
||||
key: 'validation.maxlength',
|
||||
data: ['max' => $this->maxlength]
|
||||
);
|
||||
}
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue