Skip to content

Commit

Permalink
Change parameter name to match \SplPriorityQueue::insert()
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jan 3, 2024
1 parent 2af7e90 commit 4d6340c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SplPriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class SplPriorityQueue extends \SplPriorityQueue implements Serializable
* Utilizes {@var $serial} to ensure that values of equal priority are
* emitted in the same order in which they are inserted.
*
* @param TValue $datum
* @param TValue $value
* @param TPriority $priority
* @return void
*/
public function insert($datum, $priority)
public function insert($value, $priority)
{
if (! is_array($priority)) {
$priority = [$priority, $this->serial--];
}

parent::insert($datum, $priority);
parent::insert($value, $priority);
}

/**
Expand Down

0 comments on commit 4d6340c

Please sign in to comment.