Skip to content

Commit e8ee74f

Browse files
authored
added more missing callable prototypes detected by #120
1 parent c8a9b2f commit e8ee74f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Parallel/Process.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class Process
2626
/** @var resource */
2727
private $stdErr;
2828

29-
/** @var callable */
29+
/** @var callable(mixed[] $json) : void */
3030
private $onData;
3131

32-
/** @var callable */
32+
/** @var callable(\Throwable $exception) : void */
3333
private $onError;
3434

3535
private ?TimerInterface $timer = null;
@@ -45,6 +45,11 @@ public function __construct(
4545
$this->timeoutSeconds = $timeoutSeconds;
4646
}
4747

48+
/**
49+
* @param callable(mixed[] $json) : void $onData
50+
* @param callable(\Throwable $exception) : void $onError
51+
* @param callable(?int $exitCode, string $output) : void $onExit
52+
*/
4853
public function start(callable $onData, callable $onError, callable $onExit): void
4954
{
5055
$tmpStdOut = tmpfile();

0 commit comments

Comments
 (0)