Skip to content

Commit

Permalink
Catch Throwable (TypeError)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Nov 21, 2024
1 parent 5569b21 commit 25ee7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function test_get_array_data() {

// The above didn't cause an error :(
$this->assertTrue( false );
} catch ( Exception $e ) {
} catch ( Throwable $e ) {
// Above caused an error!
$this->assertTrue( true );
}
Expand Down

0 comments on commit 25ee7cb

Please sign in to comment.