Skip to content

Commit db02017

Browse files
author
Simon Karlen
committed
removed type declaration in insertInternal method
1 parent 2026f62 commit db02017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ActiveRecord.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ public function insert($runValidation = true, $attributes = null): bool
122122
/**
123123
* Inserts an ActiveRecord.
124124
*
125-
* @param array $attributes list of attributes that need to be saved. Defaults to `null`,
125+
* @param array|null $attributes list of attributes that need to be saved. Defaults to `null`,
126126
* meaning all attributes that are loaded from DB will be saved.
127127
*
128128
* @return boolean whether the record is inserted successfully.
129129
* @throws InvalidConfigException
130130
* @throws Exception
131131
*/
132-
protected function insertInternal(array $attributes): bool
132+
protected function insertInternal($attributes): bool
133133
{
134134
if (!$this->beforeSave(true)) {
135135
return false;

0 commit comments

Comments
 (0)