Skip to content

Commit 0a30318

Browse files
committed
Remove undocumented left-over close event argument
1 parent ef3effa commit 0a30318

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/WritableResourceStream.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,9 @@ public function close()
9292
$this->writable = false;
9393
$this->data = '';
9494

95-
$this->emit('close', array($this));
95+
$this->emit('close');
9696
$this->removeAllListeners();
9797

98-
$this->handleClose();
99-
}
100-
101-
/** @internal */
102-
public function handleClose()
103-
{
10498
if (is_resource($this->stream)) {
10599
fclose($this->stream);
106100
}

0 commit comments

Comments
 (0)