Skip to content

Commit b528061

Browse files
refactor: default to not strict comparison when checking unchangeable attribute
1 parent 53e4251 commit b528061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validators/UnchangeableValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UnchangeableValidator extends Validator {
99
/**
1010
* @var boolean : Value passed to the `$identical` argument for `isAttributeChanged()`
1111
*/
12-
public $identical = true;
12+
public $identical = false;
1313

1414
public function validateAttribute($model, $attribute) {
1515
if ( ! $model->isNewRecord && $model->isAttributeChanged($attribute, $this->identical)) {

0 commit comments

Comments
 (0)