Skip to content

Commit

Permalink
Fix php7.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 11, 2024
1 parent d768636 commit 7de4c6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Monolog/Handler/StreamHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ public function testWriteErrorDuringWriteRetriesWithClose()
});

$handler->handle($this->getRecord());
self::assertIsClosedResource($refs[0]);
self::assertIsResource($refs[1]);
if (method_exists($this, 'assertIsClosedResource')) {
self::assertIsClosedResource($refs[0]);
self::assertIsResource($refs[1]);
}
}

/**
Expand Down

0 comments on commit 7de4c6d

Please sign in to comment.