From 12a5d46d2f4ed55321cbe0d53e471107d2ddc046 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Wed, 16 Nov 2022 10:46:11 -0600 Subject: [PATCH] Add closure type declarations for Psalm --- src/ReadableResourceStream.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ReadableResourceStream.php b/src/ReadableResourceStream.php index 567b7c6..f3a5400 100644 --- a/src/ReadableResourceStream.php +++ b/src/ReadableResourceStream.php @@ -40,8 +40,10 @@ final class ReadableResourceStream implements ReadableStream, ResourceStream private int $continuousReads = 0; + /** @var \Closure():void */ private readonly \Closure $resumeSuspension; + /** @var \Closure():void */ private readonly \Closure $resetContinuousReads; /**