File tree 7 files changed +11
-6
lines changed
7 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 19
19
final class Cursor
20
20
{
21
21
private OutputInterface $ output ;
22
+ /** @var resource */
22
23
private $ input ;
23
24
24
25
/**
Original file line number Diff line number Diff line change 28
28
abstract class Input implements InputInterface, StreamableInputInterface
29
29
{
30
30
protected $ definition ;
31
+ /** @var resource */
31
32
protected $ stream ;
32
33
protected $ options = [];
33
34
protected $ arguments = [];
Original file line number Diff line number Diff line change 29
29
*/
30
30
class StreamOutput extends Output
31
31
{
32
+ /** @var resource */
32
33
private $ stream ;
33
34
34
35
/**
Original file line number Diff line number Diff line change 17
17
18
18
class CursorTest extends TestCase
19
19
{
20
+ /** @var resource */
20
21
protected $ stream ;
21
22
22
23
protected function setUp (): void
@@ -26,8 +27,7 @@ protected function setUp(): void
26
27
27
28
protected function tearDown (): void
28
29
{
29
- fclose ($ this ->stream );
30
- $ this ->stream = null ;
30
+ unset($ this ->stream );
31
31
}
32
32
33
33
public function testMoveUpOneLine ()
Original file line number Diff line number Diff line change 25
25
26
26
class TableTest extends TestCase
27
27
{
28
+ /** @var resource */
28
29
protected $ stream ;
29
30
30
31
protected function setUp (): void
@@ -34,8 +35,7 @@ protected function setUp(): void
34
35
35
36
protected function tearDown (): void
36
37
{
37
- fclose ($ this ->stream );
38
- $ this ->stream = null ;
38
+ unset($ this ->stream );
39
39
}
40
40
41
41
/**
Original file line number Diff line number Diff line change 22
22
23
23
class ConsoleSectionOutputTest extends TestCase
24
24
{
25
+ /** @var resource */
25
26
private $ stream ;
26
27
27
28
protected function setUp (): void
@@ -31,7 +32,7 @@ protected function setUp(): void
31
32
32
33
protected function tearDown (): void
33
34
{
34
- $ this ->stream = null ;
35
+ unset( $ this ->stream ) ;
35
36
}
36
37
37
38
public function testClearAll ()
Original file line number Diff line number Diff line change 17
17
18
18
class StreamOutputTest extends TestCase
19
19
{
20
+ /** @var resource */
20
21
protected $ stream ;
21
22
22
23
protected function setUp (): void
@@ -26,7 +27,7 @@ protected function setUp(): void
26
27
27
28
protected function tearDown (): void
28
29
{
29
- $ this ->stream = null ;
30
+ unset( $ this ->stream ) ;
30
31
}
31
32
32
33
public function testConstructor ()
You can’t perform that action at this time.
0 commit comments