We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359b1f4 commit b66d38dCopy full SHA for b66d38d
src/Utils.php
@@ -317,7 +317,8 @@ public static function streamFor($resource = '', array $options = [])
317
* The 'php://input' is a special stream with quirks and inconsistencies.
318
* We avoid using that stream by reading it into php://temp
319
*/
320
- if (\stream_get_meta_data($resource)['uri'] === 'php://input') {
+ $metaData = \stream_get_meta_data($resource);
321
+ if (isset($metaData['uri']) && $metaData['uri'] === 'php://input') {
322
$stream = self::tryFopen('php://temp', 'w+');
323
fwrite($stream, stream_get_contents($resource));
324
fseek($stream, 0);
0 commit comments