Skip to content

Commit a5aa81e

Browse files
committed
🚿 what the fuck phpstan???
1 parent d6effe5 commit a5aa81e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

phpstan-baseline.neon

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ parameters:
55
count: 1
66
path: src/DummyStream.php
77

8+
-
9+
message: "#^Offset 'uri' on array\\{timed_out\\: bool, blocked\\: bool, eof\\: bool, unread_bytes\\: int, stream_type\\: string, wrapper_type\\: string, wrapper_data\\: mixed, mode\\: string, \\.\\.\\.\\} on left side of \\?\\? always exists and is not nullable\\.$#"
10+
count: 1
11+
path: src/HTTPFactory.php
12+
813
-
914
message: "#^Property chillerlan\\\\HTTP\\\\Psr7\\\\ServerRequest\\:\\:\\$uploadedFiles \\(array\\{tmp_name\\: array\\<string\\>, size\\: array\\<int\\>, error\\: array\\<int\\>, name\\: array\\<string\\>, type\\: array\\<string\\>\\}\\) does not accept default value of type array\\{\\}\\.$#"
1015
count: 1

src/HTTPFactory.php

-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public static function createStreamFromSource(mixed $source = null):StreamInterf
121121

122122
if($type === 'resource'){
123123
// avoid using php://input and copy over the contents to a new stream
124-
/** @phpstan-ignore-next-line */
125124
if((stream_get_meta_data($source)['uri'] ?? '') === 'php://input'){
126125
$stream = StreamUtil::tryFopen('php://temp', 'r+');
127126

0 commit comments

Comments
 (0)