From fb1f46808e7ccd03ba3c00560c5ce5f568eb49fb Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Wed, 22 Oct 2025 20:14:36 +1300 Subject: [PATCH] fix: typo in method name in example usage (#1935) --- docs/mercure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mercure.md b/docs/mercure.md index ceebad20..0acb6a7d 100644 --- a/docs/mercure.md +++ b/docs/mercure.md @@ -64,7 +64,7 @@ To dispatch an update to connected subscribers, send an authenticated POST reque const JWT = 'eyJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.PXwpfIGng6KObfZlcOXvcnWCJOWTFLtswGI5DZuWSK4'; -$updateID = file_get_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [ +$updateID = file_put_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [ 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\nAuthorization: Bearer " . JWT, 'content' => http_build_query([