Skip to content

Commit

Permalink
Adjusted PHP 7 return types [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lav45 authored and samdark committed Jul 2, 2017
1 parent b0ad73e commit 6aa0ed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/db/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public static function populateRecord($record, $row)
* @param array $attributes list of attributes that need to be saved. Defaults to `null`,
* meaning all attributes that are loaded from DB will be saved.
* @return bool whether the attributes are valid and the record is inserted successfully.
* @throws \Exception in case insert failed.
* @throws \Exception|\Throwable in case insert failed.
*/
public function insert($runValidation = true, $attributes = null)
{
Expand Down Expand Up @@ -557,7 +557,7 @@ protected function insertInternal($attributes = null)
* or [[beforeSave()]] stops the updating process.
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
* being updated is outdated.
* @throws \Exception in case update failed.
* @throws \Exception|\Throwable in case update failed.
*/
public function update($runValidation = true, $attributeNames = null)
{
Expand Down Expand Up @@ -605,7 +605,7 @@ public function update($runValidation = true, $attributeNames = null)
* Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful.
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
* being deleted is outdated.
* @throws \Exception in case delete failed.
* @throws \Exception|\Throwable in case delete failed.
*/
public function delete()
{
Expand Down

0 comments on commit 6aa0ed2

Please sign in to comment.