From 2cd4d6e45b33b44bf2918cd292cfabd56e94da82 Mon Sep 17 00:00:00 2001 From: smiley Date: Sun, 4 Aug 2024 17:46:42 +0200 Subject: [PATCH] :shower: what the fuck phpstan??? --- src/HTTPFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HTTPFactory.php b/src/HTTPFactory.php index 3258d40..1040a09 100644 --- a/src/HTTPFactory.php +++ b/src/HTTPFactory.php @@ -121,6 +121,7 @@ public static function createStreamFromSource(mixed $source = null):StreamInterf if($type === 'resource'){ // avoid using php://input and copy over the contents to a new stream + /** @phpstan-ignore-next-line */ if((stream_get_meta_data($source)['uri'] ?? '') === 'php://input'){ $stream = StreamUtil::tryFopen('php://temp', 'r+');