From 0c8af4992cb0f7589dcafaad65ada12753c64594 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2022 21:14:33 +0300 Subject: initial --- vendor/guzzlehttp/psr7/src/LazyOpenStream.php | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 vendor/guzzlehttp/psr7/src/LazyOpenStream.php (limited to 'vendor/guzzlehttp/psr7/src/LazyOpenStream.php') diff --git a/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/vendor/guzzlehttp/psr7/src/LazyOpenStream.php new file mode 100644 index 0000000..5618331 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/LazyOpenStream.php @@ -0,0 +1,41 @@ +filename = $filename; + $this->mode = $mode; + } + + /** + * Creates the underlying stream lazily when required. + */ + protected function createStream(): StreamInterface + { + return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); + } +} -- cgit v1.2.3