diff --git a/src/Traits/FrozenTimeTrait.php b/src/Traits/FrozenTimeTrait.php index 198ab7b0..c8ff5f60 100644 --- a/src/Traits/FrozenTimeTrait.php +++ b/src/Traits/FrozenTimeTrait.php @@ -160,7 +160,7 @@ public function setTimezone($value) $trace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, 5); $found = false; foreach ($trace as $frame) { - $found = in_array( + $found = isset($frame['class']) && in_array( $frame['class'], ['PHPUnit\Framework\Assert', 'PHPUnit\Framework\Constraint\IsEqual'], true