Skip to content

Commit

Permalink
add missing return type
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 27, 2022
1 parent 44103a0 commit 1c10f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Util/PriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ public function __construct()
$this->queue = new SplPriorityQueue();
}

public function insert($value, $priority)
public function insert($value, $priority): void
{
$this->queue->insert($value, $priority);
}

public function count()
public function count(): int
{
return $this->queue->count();
}

public function getIterator()
public function getIterator(): \Traversable
{
return clone $this->queue;
}
Expand Down

0 comments on commit 1c10f24

Please sign in to comment.