Skip to content

Commit

Permalink
Validator::$skipOnEmpty is always a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 31, 2022
1 parent 023985e commit 86d9c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/validators/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86d9c17

Please sign in to comment.