From 86d9c1706943a2f4f8cde2f67256d2d1bb2d5834 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Thu, 31 Mar 2022 06:06:04 -0700 Subject: [PATCH] Validator::$skipOnEmpty is always a boolean --- framework/validators/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/validators/Validator.php b/framework/validators/Validator.php index 903f35c263d..9e232ef8e9b 100644 --- a/framework/validators/Validator.php +++ b/framework/validators/Validator.php @@ -132,7 +132,7 @@ class Validator extends Component */ public $skipOnError = true; /** - * @var bool|null whether this validation rule should be skipped if the attribute value + * @var bool whether this validation rule should be skipped if the attribute value * is null or an empty string. This property is used only when validating [[yii\base\Model]]. */ public $skipOnEmpty = true;