Skip to content

Commit ea6301a

Browse files
committed
Merge pull request laravel#4813 from suwardany/bugfix/model-performUpdate
[bugfix] Fixes a bug introduced by laravel#4773
2 parents 469d429 + 885e120 commit ea6301a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ protected function finishSave(array $options)
14141414
* Perform a model update operation.
14151415
*
14161416
* @param \Illuminate\Database\Eloquent\Builder $query
1417-
* @return bool
1417+
* @return bool|null
14181418
*/
14191419
protected function performUpdate(Builder $query)
14201420
{
@@ -1449,11 +1449,9 @@ protected function performUpdate(Builder $query)
14491449

14501450
$this->fireModelEvent('updated', false);
14511451
}
1452-
1452+
14531453
return true;
14541454
}
1455-
1456-
return false;
14571455
}
14581456

14591457
/**

0 commit comments

Comments
 (0)