Skip to content

Commit a3ab479

Browse files
Add some missing return types to internal/final classes
1 parent e8749eb commit a3ab479

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Pipes/UnixPipes.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ public function __construct(?bool $ttyMode, bool $ptyMode, $input, bool $haveRea
3535
parent::__construct($input);
3636
}
3737

38-
/**
39-
* @return array
40-
*/
41-
public function __sleep()
38+
public function __sleep(): array
4239
{
4340
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
4441
}

Pipes/WindowsPipes.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ public function __construct($input, bool $haveReadSupport)
8888
parent::__construct($input);
8989
}
9090

91-
/**
92-
* @return array
93-
*/
94-
public function __sleep()
91+
public function __sleep(): array
9592
{
9693
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
9794
}

0 commit comments

Comments
 (0)