We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 424867a commit 1754875Copy full SHA for 1754875
2 files changed
src/FallenException.php
@@ -6,7 +6,7 @@
6
/**
7
* Class for situations where PHP code has fallen through a switch statement or a combination of if-elseif statements.
8
*/
9
-class FallenException extends RuntimeException
+class FallenException extends LogicException
10
{
11
//--------------------------------------------------------------------------------------------------------------------
12
test/FallenExceptionTest.php
@@ -23,7 +23,7 @@ public function testName(): void
23
24
self::assertStringContainsString('foo', $e->getMessage());
25
self::assertStringContainsString('bar', $e->getMessage());
26
- self::assertInstanceOf(\RuntimeException::class, $e);
+ self::assertInstanceOf(\LogicException::class, $e);
27
}
28
29
0 commit comments