summaryrefslogtreecommitdiff
path: root/vendor/psr
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr')
-rw-r--r--vendor/psr/http-factory/README.md7
-rw-r--r--vendor/psr/http-factory/src/StreamFactoryInterface.php2
2 files changed, 7 insertions, 2 deletions
diff --git a/vendor/psr/http-factory/README.md b/vendor/psr/http-factory/README.md
index f86868a0cf..41d362a625 100644
--- a/vendor/psr/http-factory/README.md
+++ b/vendor/psr/http-factory/README.md
@@ -1,7 +1,10 @@
HTTP Factories
==============
-This is the implementation of [PSR-17 (HTTP Message Factories)][psr-17]. Please refer to the
-specification for a description.
+This repository holds all interfaces related to [PSR-17 (HTTP Message Factories)][psr-17].
+Please refer to the specification for a description.
+
+You can find implementations of the specification by looking for packages providing the
+[psr/http-factory-implementation](https://packagist.org/providers/psr/http-factory-implementation) virtual package.
[psr-17]: https://www.php-fig.org/psr/psr-17/
diff --git a/vendor/psr/http-factory/src/StreamFactoryInterface.php b/vendor/psr/http-factory/src/StreamFactoryInterface.php
index ef4a936060..90e3240c47 100644
--- a/vendor/psr/http-factory/src/StreamFactoryInterface.php
+++ b/vendor/psr/http-factory/src/StreamFactoryInterface.php
@@ -27,6 +27,8 @@ interface StreamFactoryInterface
* @param string $mode Mode with which to open the underlying filename/stream.
*
* @return StreamInterface
+ * @throws \RuntimeException If the file cannot be opened.
+ * @throws \InvalidArgumentException If the mode is invalid.
*/
public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface;