We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d08e36 commit 58d1faeCopy full SHA for 58d1fae
Classes/OAuthClient.php
@@ -575,7 +575,8 @@ protected function removeExpiredAuthorizations(): void
575
*/
576
public function shutdownObject(): void
577
{
578
- $decimals = strlen(strrchr($this->garbageCollectionProbability, '.')) - 1;
+ $garbageCollectionProbability = (string)$this->garbageCollectionProbability;
579
+ $decimals = strlen(strrchr($garbageCollectionProbability, '.') ?: '') - 1;
580
$factor = ($decimals > -1) ? $decimals * 10 : 1;
581
try {
582
if (random_int(1, 100 * $factor) <= ($this->garbageCollectionProbability * $factor)) {
0 commit comments