Skip to content

Commit

Permalink
soothe phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jun 20, 2020
1 parent d39164e commit f5dc13a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/StreamProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit f5dc13a

Please sign in to comment.