Fix #20576: Fix @var annotation for StringValidator::$length

This commit is contained in:
Maksim Spirkov
2025-10-06 14:33:30 +04:00
committed by GitHub
parent ba41721c40
commit 138815a027
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ use yii\helpers\Json;
class StringValidator extends Validator
{
/**
* @var int|array specifies the length limit of the value to be validated.
* @var int|array|null specifies the length limit of the value to be validated.
* This can be specified in one of the following forms:
*
* - an integer: the exact length that the value should be of;