Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fix for php8
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Dec 4, 2020
1 parent 2482da9 commit a736dc0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/StreamTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);

namespace Sunrise\Stream\Tests;

Expand All @@ -15,15 +15,14 @@ class StreamTest extends TestCase
{
private $handle;

protected function setUp()
protected function setUp() : void
{
$this->handle = \fopen('php://memory', 'r+b');
}

protected function tearDown()
protected function tearDown() : void
{
if (\is_resource($this->handle))
{
if (\is_resource($this->handle)) {
\fclose($this->handle);
}
}
Expand Down

0 comments on commit a736dc0

Please sign in to comment.