We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea34298 + 123cd86 commit 9553afaCopy full SHA for 9553afa
1 file changed
src/Request.php
@@ -91,12 +91,12 @@ public function write($data)
91
}
92
93
if (!count($this->pendingWrites)) {
94
- $this->on('headers-written', function ($this) {
95
- foreach ($this->pendingWrites as $pw) {
96
- $this->write($pw);
+ $this->on('headers-written', function ($that) {
+ foreach ($that->pendingWrites as $pw) {
+ $that->write($pw);
97
98
- $this->pendingWrites = array();
99
- $this->emit('drain', array($this));
+ $that->pendingWrites = array();
+ $that->emit('drain', array($that));
100
});
101
102
0 commit comments