Skip to content

Commit b399208

Browse files
authored
Resolve PHP 8.5 deprecation errors (#226)
1 parent f0a64ef commit b399208

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- ubuntu-latest
1616
- windows-latest
1717
php:
18+
- 8.5
1819
- 8.4
1920
- 8.3
2021
- 8.2

src/Scheduler/PriorityQueue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class InternalPriorityQueue extends SplPriorityQueue
7272
// use this value to "stabilize" the priority queue
7373
private $serial = PHP_INT_MAX;
7474

75+
#[ReturnTypeWillChange]
7576
public function insert($item, $priority)
7677
{
7778
parent::insert($item, [$priority, $this->serial--]);

0 commit comments

Comments
 (0)