Skip to content

Commit 1edb762

Browse files
Backport type fixes
1 parent deb246a commit 1edb762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Fixtures/MockStream/MockStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MockStream
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
2828
*/
29-
public function stream_open($path, $mode, $options, &$opened_path): bool
29+
public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool
3030
{
3131
return true;
3232
}
@@ -37,7 +37,7 @@ public function stream_open($path, $mode, $options, &$opened_path): bool
3737
*
3838
* @return array File stats
3939
*/
40-
public function url_stat($path, $flags): array
40+
public function url_stat(string $path, int $flags): array
4141
{
4242
return [];
4343
}

0 commit comments

Comments
 (0)