diff --git a/src/Util/ClockMock.php b/src/Util/ClockMock.php index ea3f18f18..004291d39 100644 --- a/src/Util/ClockMock.php +++ b/src/Util/ClockMock.php @@ -146,7 +146,7 @@ public static function register($class): void if (strpos($class, '\\Tests\\') > 0) { $ns = str_replace('\\Tests\\', '\\', $class); $mockedNs[] = substr($ns, 0, strrpos($ns, '\\')); - } elseif (str_starts_with($class, 'Tests\\')) { + } elseif (strpos($class, 'Tests\\') === 0) { $mockedNs[] = substr($class, 6, strrpos($class, '\\') - 6); } foreach ($mockedNs as $ns) {