Skip to content

Commit 415ad2b

Browse files
PriorityQueue: Ensure compatibility of return type with SplPriorityQueue
1 parent a0887b9 commit 415ad2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PriorityQueue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class PriorityQueue extends SplPriorityQueue
2525
* @param TValue $value
2626
* @param TPriority $priority
2727
*
28-
* @return bool
28+
* @return true
2929
*/
30-
public function insert($value, $priority): bool
30+
public function insert($value, $priority): true
3131
{
3232
return parent::insert($value, [$priority, $this->serial--]);
3333
}

0 commit comments

Comments
 (0)