fix types

This commit is contained in:
Fabio Ivona
2022-02-18 16:42:34 +01:00
parent 10b204e19d
commit 2c3a296040

View File

@ -823,7 +823,7 @@ final class Expectation
try { try {
($this->value)(); ($this->value)();
} catch (Throwable $e) { // @phpstan-ignore-line } catch (Throwable $e) {
if (!class_exists($exception)) { if (!class_exists($exception)) {
if ($e instanceof Error && $e->getMessage() === "Class \"$exception\" not found") { if ($e instanceof Error && $e->getMessage() === "Class \"$exception\" not found") {
throw $e; throw $e;