Skip to content

Commit

Permalink
Add closure type declarations for Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 16, 2022
1 parent 3b7d9c6 commit 12a5d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ReadableResourceStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 12a5d46

Please # to comment.