Skip to content

Commit bddae0d

Browse files
author
Andrey Helldar
committed
Fix: Declaration should be compatible with Model->setKeysForSaveQuery(query: \Illuminate\Database\Eloquent\Builder)
1 parent 684ac01 commit bddae0d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Eloquent/CompositeKeysModel.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Helldar\LaravelSupport\Eloquent;
44

5-
use Illuminate\Database\Eloquent\Builder;
65
use Illuminate\Database\Eloquent\Model;
76

87
abstract class CompositeKeysModel extends Model
@@ -25,7 +24,12 @@ public function getAttribute($key)
2524
: null;
2625
}
2726

28-
protected function setKeysForSaveQuery(Builder $query)
27+
/**
28+
* @param \Illuminate\Database\Eloquent\Builder $query
29+
*
30+
* @return \Illuminate\Database\Eloquent\Builder
31+
*/
32+
protected function setKeysForSaveQuery($query)
2933
{
3034
/** @var array|string $keys */
3135
$keys = $this->primaryKey;

0 commit comments

Comments
 (0)