Skip to content

Commit 1754875

Browse files
committed
FallenException must be a LogicException.
1 parent 424867a commit 1754875

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FallenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Class for situations where PHP code has fallen through a switch statement or a combination of if-elseif statements.
88
*/
9-
class FallenException extends RuntimeException
9+
class FallenException extends LogicException
1010
{
1111
//--------------------------------------------------------------------------------------------------------------------
1212
/**

test/FallenExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testName(): void
2323
{
2424
self::assertStringContainsString('foo', $e->getMessage());
2525
self::assertStringContainsString('bar', $e->getMessage());
26-
self::assertInstanceOf(\RuntimeException::class, $e);
26+
self::assertInstanceOf(\LogicException::class, $e);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)