@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
290 | - * @param string|array $sortableGroupField |
|
290 | + * @param string|null $sortableGroupField |
|
291 | 291 | * @param Model $entity |
292 | 292 | * |
293 | 293 | * @throws SortableException |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | } |
309 | 309 | |
310 | 310 | /** |
311 | - * @param Model|SortableTrait $entity1 |
|
311 | + * @param SortableTrait $entity1 |
|
312 | 312 | * @param Model $entity2 |
313 | 313 | * @param string $field |
314 | 314 | * |
@@ -99,7 +99,7 @@ |
||
99 | 99 | if ($oldList !== $newList) { |
100 | 100 | $query = static::applySortableGroup(static::on(), $entity); |
101 | 101 | $oldPosition = $query->max($sortableField) + 1; |
102 | - $this->setAttribute($groupField,$newList); |
|
102 | + $this->setAttribute($groupField, $newList); |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 |