Skip to content

Commit 85d323a

Browse files
committed
mongodb#1930 add required return statements
1 parent 6512e67 commit 85d323a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Relations/BelongsToMany.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public function sync($ids, $detaching = true)
171171
public function updateExistingPivot($id, array $attributes, $touch = true)
172172
{
173173
// Do nothing, we have no pivot table.
174+
return $this;
174175
}
175176

176177
/** @inheritdoc */

src/Schema/Blueprint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ public function create($options = [])
274274
public function drop()
275275
{
276276
$this->collection->drop();
277+
278+
return $this;
277279
}
278280

279281
/** @inheritdoc */

0 commit comments

Comments
 (0)