Skip to content

Commit

Permalink
Normalize doc block types in FastPriorityQueue
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Oct 10, 2022
1 parent 5db2671 commit 94ca419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/FastPriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,28 @@ class FastPriorityQueue implements Iterator, Countable, Serializable
/**
* Max priority
*
* @var integer|null
* @var int|null
*/
protected $maxPriority;

/**
* Total number of elements in the queue
*
* @var integer
* @var int
*/
protected $count = 0;

/**
* Index of the current element in the queue
*
* @var integer
* @var int
*/
protected $index = 0;

/**
* Sub index of the current element in the same priority level
*
* @var integer
* @var int
*/
protected $subIndex = 0;

Expand Down Expand Up @@ -113,7 +113,7 @@ public function __unserialize(array $data): void
* Insert an element in the queue with a specified priority
*
* @param mixed $value
* @param integer $priority
* @param int $priority
* @return void
*/
public function insert($value, $priority)
Expand Down Expand Up @@ -351,7 +351,7 @@ public function unserialize($data)
/**
* Set the extract flag
*
* @param integer $flag
* @param int $flag
* @return void
*/
public function setExtractFlags($flag)
Expand All @@ -370,7 +370,7 @@ public function setExtractFlags($flag)
/**
* Check if the queue is empty
*
* @return boolean
* @return bool
*/
public function isEmpty()
{
Expand Down
2 changes: 1 addition & 1 deletion test/FastPriorityQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function testSerializationAndDeserializationShouldMaintainState(): void
self::assertSame(
$count,
count($unserialized),
'Expected count ' . $count . '; received ' . count($unserialized)
'Expected count ' . (string) $count . '; received ' . (string) count($unserialized)
);

$expected = [];
Expand Down

0 comments on commit 94ca419

Please sign in to comment.