Skip to content

Commit

Permalink
add import
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate authored Nov 28, 2020
1 parent 4298b11 commit aaf88e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Factory/StreamFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Psr\Http\Message\StreamInterface;
use RuntimeException;
use Slim\Psr7\Stream;
use ValueError;

use function fopen;
use function fwrite;
Expand Down Expand Up @@ -78,7 +79,7 @@ public function createStreamFromFile(
$resource = fopen($filename, $mode);
// @codeCoverageIgnoreStart
// (Can only be executed in PHP >= 8.0)
} catch (\ValueError $exception) {
} catch (ValueError $exception) {
$errorHandler($exception->getMessage());
}
// @codeCoverageIgnoreEnd
Expand Down

0 comments on commit aaf88e8

Please sign in to comment.