Skip to content

Commit 4bec4d3

Browse files
author
Hikmat Hasanov
committed
delete unneeded query() call
1 parent f3fab09 commit 4bec4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/RelationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ public function testWhereBelongsTo()
543543
Item::create(['user_id' => $user->_id]);
544544
Item::create(['user_id' => null]);
545545

546-
$items = Item::query()->whereBelongsTo($user)->get();
546+
$items = Item::whereBelongsTo($user)->get();
547547

548548
$this->assertCount(3, $items);
549549
}

0 commit comments

Comments
 (0)