Skip to content

Commit afe5596

Browse files
committed
Merge branch 'master' into merge-master
2 parents 1be8635 + 1de5202 commit afe5596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Util/ClockMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function register($class): void
146146
if (strpos($class, '\\Tests\\') > 0) {
147147
$ns = str_replace('\\Tests\\', '\\', $class);
148148
$mockedNs[] = substr($ns, 0, strrpos($ns, '\\'));
149-
} elseif (str_starts_with($class, 'Tests\\')) {
149+
} elseif (strpos($class, 'Tests\\') === 0) {
150150
$mockedNs[] = substr($class, 6, strrpos($class, '\\') - 6);
151151
}
152152
foreach ($mockedNs as $ns) {

0 commit comments

Comments
 (0)