Skip to content

Commit 6a52b66

Browse files
committed
bug #45067 [RateLimiter] Implicit conversion fix (brian978)
This PR was merged into the 5.4 branch. Discussion ---------- [RateLimiter] Implicit conversion fix | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT This PR fixes the deprecation notice "Deprecated: Implicit conversion from float <float_number> to int loses precision" Commits ------- 7d84192 Fix for "Implicit conversion from float <float_number> to int loses precision"
2 parents 68dd069 + 7d84192 commit 6a52b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/RateLimiter/RateLimit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ public function wait(): void
7272
return;
7373
}
7474

75-
usleep($delta * 1e6);
75+
usleep((int) ($delta * 1e6));
7676
}
7777
}

0 commit comments

Comments
 (0)