From f5dc13aef3b5fc56c3a6b8e5b3da77a0f731ea78 Mon Sep 17 00:00:00 2001 From: koriym Date: Sat, 20 Jun 2020 23:35:08 +0900 Subject: [PATCH] soothe phpstan --- src/StreamProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/StreamProvider.php b/src/StreamProvider.php index 2167d3c..67827ec 100644 --- a/src/StreamProvider.php +++ b/src/StreamProvider.php @@ -17,6 +17,9 @@ class StreamProvider implements ProviderInterface */ public function get() { - return fopen('php://temp/', 'r+'); + $stream = fopen('php://temp/', 'r+'); + assert(is_resource($stream)); + + return $stream; } }