From ec1ebd764f3f5d9ded8cc39faba5a3e00847226c Mon Sep 17 00:00:00 2001 From: kawax Date: Sun, 24 Nov 2024 16:28:43 +0900 Subject: [PATCH] Update testing.md --- docs/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.md b/docs/testing.md index a9fc854d..279d2e06 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -37,7 +37,7 @@ use Revolution\Bluesky\FeedGenerator\FeedGenerator; public function test_feed_generator(): void { - FeedGenerator::register('test', function (?int $limit, ?string $cursor) { + FeedGenerator::register(name: 'test', algo: function (?int $limit, ?string $cursor) { $posts = Bluesky::searchPosts(q: '#bluesky')->collect('posts'); $feed = $posts->map(function (array $post) { return ['post' => data_get($post, 'uri')];