File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ public function error(string $string): void
4848 fwrite ($ this ->errorStream , $ string );
4949 }
5050
51+ /**
52+ * @return resource
53+ */
5154 private function createStream (callable $ factory )
5255 {
5356 $ stream = $ factory ();
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class MemoryWriter implements IBufferWriter
1515 /** @var resource|null */
1616 private $ errorStream ;
1717
18- /** @var FileWriter */
18+ /** @var LazyStreamWriter */
1919 private $ writer ;
2020
2121 public function __construct ()
@@ -47,11 +47,17 @@ public function error(string $string): void
4747 $ this ->writer ->error ($ string );
4848 }
4949
50+ /**
51+ * @return resource
52+ */
5053 private function createOutputStream ()
5154 {
5255 return $ this ->outputStream = $ this ->createMemoryStream ();
5356 }
5457
58+ /**
59+ * @return resource
60+ */
5561 private function createErrorStream ()
5662 {
5763 return $ this ->errorStream = $ this ->createMemoryStream ();
You can’t perform that action at this time.
0 commit comments