Skip to content

Commit 148feeb

Browse files
committed
Documented the coroutine store helper with PHPStan-friendly generics so ArrayAccess usage in RequestContextScope type-checks cleanly
1 parent 9177a48 commit 148feeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Web/RequestContextScope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function clear(): void
6666

6767
$this->fallbackContext = null;
6868
}
69-
69+
7070
private function getFromStore(ArrayAccess $store): ?RequestContext
7171
{
7272
if (!$store->offsetExists(self::CONTEXT_KEY)) {
@@ -77,7 +77,7 @@ private function getFromStore(ArrayAccess $store): ?RequestContext
7777
return $value instanceof RequestContext ? $value : null;
7878
}
7979

80-
private function fetchCoroutineContext(): ?ArrayAccess
80+
private function fetchCoroutineContext(): ?ArrayAccess<string, mixed>
8181
{
8282
$class = $this->resolveCoroutineClass();
8383
if ($class === null) {

0 commit comments

Comments
 (0)