Skip to content

Commit

Permalink
removed type declaration in insertInternal method
Browse files Browse the repository at this point in the history
  • Loading branch information
simialbi committed Jul 27, 2021
1 parent 2026f62 commit db02017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ public function insert($runValidation = true, $attributes = null): bool
/**
* Inserts an ActiveRecord.
*
* @param array $attributes list of attributes that need to be saved. Defaults to `null`,
* @param array|null $attributes list of attributes that need to be saved. Defaults to `null`,
* meaning all attributes that are loaded from DB will be saved.
*
* @return boolean whether the record is inserted successfully.
* @throws InvalidConfigException
* @throws Exception
*/
protected function insertInternal(array $attributes): bool
protected function insertInternal($attributes): bool
{
if (!$this->beforeSave(true)) {
return false;
Expand Down

0 comments on commit db02017

Please sign in to comment.