From 2c3a2960406367c4438a51fd531dd4d5c7dcc329 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Fri, 18 Feb 2022 16:42:34 +0100 Subject: [PATCH] fix types --- src/Mixins/Expectation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mixins/Expectation.php b/src/Mixins/Expectation.php index 64235cfc..5823d61c 100644 --- a/src/Mixins/Expectation.php +++ b/src/Mixins/Expectation.php @@ -823,7 +823,7 @@ final class Expectation try { ($this->value)(); - } catch (Throwable $e) { // @phpstan-ignore-line + } catch (Throwable $e) { if (!class_exists($exception)) { if ($e instanceof Error && $e->getMessage() === "Class \"$exception\" not found") { throw $e;