Skip to content

Commit a7b5a7f

Browse files
Add return types to tests and final|internal|private methods
1 parent 9cec0b6 commit a7b5a7f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/Fixtures/MockStream/MockStream.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ class MockStream
2525
* @param int $options Holds additional flags set by the streams API
2626
* @param string $opened_path If the path is opened successfully, and STREAM_USE_PATH is set in options,
2727
* opened_path should be set to the full path of the file/resource that was actually opened
28-
*
29-
* @return bool
3028
*/
31-
public function stream_open($path, $mode, $options, &$opened_path)
29+
public function stream_open($path, $mode, $options, &$opened_path): bool
3230
{
3331
return true;
3432
}
@@ -39,7 +37,7 @@ public function stream_open($path, $mode, $options, &$opened_path)
3937
*
4038
* @return array File stats
4139
*/
42-
public function url_stat($path, $flags)
40+
public function url_stat($path, $flags): array
4341
{
4442
return [];
4543
}

0 commit comments

Comments
 (0)