Skip to content

Commit 25ee7cb

Browse files
committed
Catch Throwable (TypeError)
1 parent 5569b21 commit 25ee7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function test_get_array_data() {
127127

128128
// The above didn't cause an error :(
129129
$this->assertTrue( false );
130-
} catch ( Exception $e ) {
130+
} catch ( Throwable $e ) {
131131
// Above caused an error!
132132
$this->assertTrue( true );
133133
}

0 commit comments

Comments
 (0)