Skip to content

Commit 4a38f4a

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Security/Http] fix typo in deprecation message Various tweaks 3.4 Various tweaks 4.3 [PhpUnit] Fix usleep mock return value [Lock] use Predis\ClientInterface instead of Predis\Client Fix version typo in deprecation notice Make legacy "wrong" RFC2047 encoding apply only to one header
2 parents 538c955 + cfb2b21 commit 4a38f4a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ClockMock.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ public static function sleep($s)
5353
public static function usleep($us)
5454
{
5555
if (null === self::$now) {
56-
return \usleep($us);
56+
\usleep($us);
57+
} else {
58+
self::$now += $us / 1000000;
5759
}
58-
59-
self::$now += $us / 1000000;
60-
61-
return null;
6260
}
6361

6462
public static function microtime($asFloat = false)
@@ -127,7 +125,7 @@ function sleep(\$s)
127125
128126
function usleep(\$us)
129127
{
130-
return \\$self::usleep(\$us);
128+
\\$self::usleep(\$us);
131129
}
132130
133131
function date(\$format, \$timestamp = null)

0 commit comments

Comments
 (0)