Skip to content

Commit 2ec878b

Browse files
committed
Fix test
1 parent 2bf30bf commit 2ec878b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Rules/Exceptions/CatchWithUnthrownExceptionRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public function testBug4863(): void
8989

9090
public function testBug4814(): void
9191
{
92+
if (PHP_VERSION_ID < 70300) {
93+
$this->markTestSkipped('Test requires PHP 7.3.');
94+
}
95+
9296
$this->analyse([__DIR__ . '/data/bug-4814.php'], [
9397
[
9498
'Dead catch - JsonException is never thrown in the try block.',

0 commit comments

Comments
 (0)