Skip to content

Commit b8cea62

Browse files
committed
fix some wording
1 parent 6a1fae7 commit b8cea62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Coroutine/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ public static function removeData(string $key)
6262
}
6363

6464
/**
65-
* Get data by current coroutine id.
65+
* Get data keys by current coroutine id.
6666
*/
6767
public static function getDataKeys()
6868
{
6969
return array_keys(static::$data[static::getCoroutineId()] ?? []);
7070
}
7171

7272
/**
73-
* Get data by current coroutine id.
73+
* Clear data by current coroutine id.
7474
*/
7575
public static function clear()
7676
{

src/Server/Sandbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function getSnapshot()
326326
/**
327327
* Remove current request.
328328
*/
329-
protected function removeRequest()
329+
public function removeRequest()
330330
{
331331
return Context::removeData('_request');
332332
}

0 commit comments

Comments
 (0)