Skip to content

Commit

Permalink
Revert "Fix #19668: Fix Error null check PHP 8.1 `yii\validators\Filt…
Browse files Browse the repository at this point in the history
…erValidator`"

This reverts commit d056c7f209c3e14c36959225383b0ca4aaaf171f.
  • Loading branch information
samdark committed Nov 15, 2022
1 parent b46427c commit 3dc3175
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Yii Framework 2 Change Log
- Bug #19316: Fix MysqlMutex with same connection but difference database (kamarton)
- Bug #19507: Fix eager loading of nested one-to-many relations (spo0okie)
- Bug #19546: Reverted #19309 (bizley)
- Bug #19668: Fix Error null check PHP 8.1 `yii\validators\FilterValidator` (samuelexyz)
- Bug #19670: Fix Error null check PHP 8.1 `yii\rbac\DbManager` (samuelexyz)
- Bug #19520: Fix for TIMESTAMP & ROWVERSION columns in MSSQL insert query (darkdef)
- Bug #19581: Fix regression in `CompositeAuth` introduced in #19418 (SamMousa, WinterSilence, samdark)
Expand Down
2 changes: 1 addition & 1 deletion validators/FilterValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function init()
public function validateAttribute($model, $attribute)
{
$value = $model->$attribute;
if ((!$this->skipOnArray || !is_array($value)) && $value) {
if (!$this->skipOnArray || !is_array($value)) {
$model->$attribute = call_user_func($this->filter, $value);
}
}
Expand Down

0 comments on commit 3dc3175

Please sign in to comment.