Skip to content

Commit 5e2fb08

Browse files
authored
Update GetNth.php (#214)
1 parent dcd2bbe commit 5e2fb08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Macros/GetNth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GetNth
1717
public function __invoke()
1818
{
1919
return function (int $nth) {
20-
return $this->skip($nth - 1)->first();
20+
return $this->slice($nth - 1, 1)->first();
2121
};
2222
}
2323
}

0 commit comments

Comments
 (0)