Skip to content

Conversation

@AhmedAlaa4611
Copy link
Contributor

make() is essentially just a static alias to the constructor. it performs no logic.

removing the middleman to simplify the call stack.

continuation of #54216

$cursor = new Cursor(['id' => 25], true);

$p = new CursorPaginator(Collection::make(), 25, $cursor, [
$p = new CursorPaginator(new Collection(), 25, $cursor, [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop the parentheses when nothing is passed to the constructor.

for consistency

@taylorotwell
Copy link
Member

I think it's fine in tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants