From 5177673fe639f92e95444cd46108193fe7344a55 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Tue, 10 Mar 2026 15:49:35 +0100 Subject: [PATCH] Resolve PHP 8.5 deprecation errors --- .github/workflows/ci.yml | 1 + src/Scheduler/PriorityQueue.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bea5064..964a3709 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: - ubuntu-latest - windows-latest php: + - 8.5 - 8.4 - 8.3 - 8.2 diff --git a/src/Scheduler/PriorityQueue.php b/src/Scheduler/PriorityQueue.php index 88e8d9c8..34016f93 100644 --- a/src/Scheduler/PriorityQueue.php +++ b/src/Scheduler/PriorityQueue.php @@ -72,6 +72,7 @@ class InternalPriorityQueue extends SplPriorityQueue // use this value to "stabilize" the priority queue private $serial = PHP_INT_MAX; + #[ReturnTypeWillChange] public function insert($item, $priority) { parent::insert($item, [$priority, $this->serial--]);