Skip to content

Commit a9aca1e

Browse files
authored
Merge pull request #70 from chrisryan/php8
Fix deprecation notice about implicit cast of floats.
2 parents dc4e5b7 + f5f2c6e commit a9aca1e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-18.04
1212
strategy:
1313
matrix:
14-
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
14+
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

src/AbstractQueue.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,8 @@ private function throwIfTrue(
408408
}
409409
}
410410

411-
private function calculateEndTime(int $waitDurationInMillis) : int
411+
private function calculateEndTime(int $waitDurationInMillis) : float
412412
{
413-
//ints overflow to floats, should be fine
414413
return microtime(true) + ($waitDurationInMillis / 1000.0);
415414
}
416415
}

0 commit comments

Comments
 (0)