Skip to content

Commit 0eb64cd

Browse files
Ensure all properties have a type
1 parent cfa88ba commit 0eb64cd

7 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎Cursor.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
finalclass Cursor
2020
{
2121
privateOutputInterface$output;
22+
/** @var resource */
2223
private$input;
2324

2425
/**

‎Input/Input.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
abstractclass Input implements InputInterface, StreamableInputInterface
2929
{
3030
protected$definition;
31+
/** @var resource */
3132
protected$stream;
3233
protected$options = [];
3334
protected$arguments = [];

‎Output/StreamOutput.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
class StreamOutput extends Output
3131
{
32+
/** @var resource */
3233
private$stream;
3334

3435
/**

‎Tests/CursorTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
class CursorTest extends TestCase
1919
{
20+
/** @var resource */
2021
protected$stream;
2122

2223
protectedfunctionsetUp(): void
@@ -26,8 +27,7 @@ protected function setUp(): void
2627

2728
protectedfunctiontearDown(): void
2829
{
29-
fclose($this->stream);
30-
$this->stream = null;
30+
unset($this->stream);
3131
}
3232

3333
publicfunctiontestMoveUpOneLine()

‎Tests/Helper/TableTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class TableTest extends TestCase
2727
{
28+
/** @var resource */
2829
protected$stream;
2930

3031
protectedfunctionsetUp(): void
@@ -34,8 +35,7 @@ protected function setUp(): void
3435

3536
protectedfunctiontearDown(): void
3637
{
37-
fclose($this->stream);
38-
$this->stream = null;
38+
unset($this->stream);
3939
}
4040

4141
/**

‎Tests/Output/ConsoleSectionOutputTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
class ConsoleSectionOutputTest extends TestCase
2424
{
25+
/** @var resource */
2526
private$stream;
2627

2728
protectedfunctionsetUp(): void
@@ -31,7 +32,7 @@ protected function setUp(): void
3132

3233
protectedfunctiontearDown(): void
3334
{
34-
$this->stream = null;
35+
unset($this->stream);
3536
}
3637

3738
publicfunctiontestClearAll()

‎Tests/Output/StreamOutputTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
class StreamOutputTest extends TestCase
1919
{
20+
/** @var resource */
2021
protected$stream;
2122

2223
protectedfunctionsetUp(): void
@@ -26,7 +27,7 @@ protected function setUp(): void
2627

2728
protectedfunctiontearDown(): void
2829
{
29-
$this->stream = null;
30+
unset($this->stream);
3031
}
3132

3233
publicfunctiontestConstructor()

0 commit comments

Comments
 (0)