There was an error while loading. Please reload this page.
1 parent db4e2d9 commit a4e5c61Copy full SHA for a4e5c61
1 file changed
tests/_support/Session/FaultyStream.php
@@ -34,7 +34,7 @@ final class FaultyStream
34
private static bool $failWrite = false;
35
36
/**
37
- * @var resource|false|null
+ * @var false|resource|null
38
*/
39
private mixed $stream = null;
40
@@ -75,7 +75,7 @@ public function stream_read(int $count): false|string
75
public function stream_write(string $data): false|int
76
{
77
if (self::$failWrite) {
78
- $stream = fopen('php://temp', 'r');
+ $stream = fopen('php://temp', 'rb');
79
$result = fwrite($stream, $data);
80
fclose($stream);
81
0 commit comments