mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-28 08:03:33 +03:00
Incorrect closeAll() on ProcPipes
This commit is contained in:
parent
7d861eb92f
commit
6d0b2121b8
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class ProcPipes
|
|||
|
||||
public function closeAll(): void
|
||||
{
|
||||
$this->pipes && \array_all($this->pipes, [$this, 'close']);
|
||||
$this->pipes && \array_all(\array_keys($this->pipes), [$this, 'close']);
|
||||
$this->pipes = [];
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ class ProcPipes
|
|||
}
|
||||
}
|
||||
|
||||
public function close(/*resource|int*/ $number): void
|
||||
public function close(int $number): void
|
||||
{
|
||||
if (\array_key_exists($number, $this->pipes)) {
|
||||
\fflush($this->pipes[$number]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue