File tree Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1919final class Cursor
2020{
2121 private OutputInterface $ output ;
22+ /** @var resource */
2223 private $ input ;
2324
2425 /**
Original file line number Diff line number Diff line change 2828abstract class Input implements InputInterface, StreamableInputInterface
2929{
3030 protected $ definition ;
31+ /** @var resource */
3132 protected $ stream ;
3233 protected $ options = [];
3334 protected $ arguments = [];
Original file line number Diff line number Diff line change 2929 */
3030class StreamOutput extends Output
3131{
32+ /** @var resource */
3233 private $ stream ;
3334
3435 /**
Original file line number Diff line number Diff line change 1717
1818class CursorTest extends TestCase
1919{
20+ /** @var resource */
2021 protected $ stream ;
2122
2223 protected function setUp (): void
@@ -26,8 +27,7 @@ protected function setUp(): void
2627
2728 protected function tearDown (): void
2829 {
29- fclose ($ this ->stream );
30- $ this ->stream = null ;
30+ unset($ this ->stream );
3131 }
3232
3333 public function testMoveUpOneLine ()
Original file line number Diff line number Diff line change 2525
2626class TableTest extends TestCase
2727{
28+ /** @var resource */
2829 protected $ stream ;
2930
3031 protected function setUp (): void
@@ -34,8 +35,7 @@ protected function setUp(): void
3435
3536 protected function tearDown (): void
3637 {
37- fclose ($ this ->stream );
38- $ this ->stream = null ;
38+ unset($ this ->stream );
3939 }
4040
4141 /**
Original file line number Diff line number Diff line change 2222
2323class ConsoleSectionOutputTest extends TestCase
2424{
25+ /** @var resource */
2526 private $ stream ;
2627
2728 protected function setUp (): void
@@ -31,7 +32,7 @@ protected function setUp(): void
3132
3233 protected function tearDown (): void
3334 {
34- $ this ->stream = null ;
35+ unset( $ this ->stream ) ;
3536 }
3637
3738 public function testClearAll ()
Original file line number Diff line number Diff line change 1717
1818class StreamOutputTest extends TestCase
1919{
20+ /** @var resource */
2021 protected $ stream ;
2122
2223 protected function setUp (): void
@@ -26,7 +27,7 @@ protected function setUp(): void
2627
2728 protected function tearDown (): void
2829 {
29- $ this ->stream = null ;
30+ unset( $ this ->stream ) ;
3031 }
3132
3233 public function testConstructor ()
You can’t perform that action at this time.
0 commit comments