Skip to content

Commit

Permalink
remove try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Jan 23, 2024
1 parent 681a8f8 commit f03bb9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/tests/post_hook_type_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ class Foo
fn() => var_dump('pre'),
fn(string $scope, array $params, mixed $returnValue, ?Throwable $throwable) => var_dump('post')); //NB invalid type for $scope

try {
(new Foo())->bar();
} catch(Exception) {}

(new Foo())->bar();
var_dump('baz');
--EXPECTF--
string(3) "pre"
Expand Down

0 comments on commit f03bb9c

Please sign in to comment.