Skip to content

Commit

Permalink
🚿 what the fuck phpstan???
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Aug 4, 2024
1 parent f3e4a15 commit 2cd4d6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HTTPFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'){

Check failure on line 125 in src/HTTPFactory.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (8.2)

No error to ignore is reported on line 125.
$stream = StreamUtil::tryFopen('php://temp', 'r+');

Expand Down

0 comments on commit 2cd4d6e

Please sign in to comment.