Skip to content

Commit

Permalink
fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mordilion committed Feb 18, 2022
1 parent 3691bae commit cd9331d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mordilion/HuffmanPHP/Dictionary/Occurrence.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class Occurrence
private $count;

/**
* @var array<string, string>
* @var array<string|int, string>
*/
private $data;

Expand Down Expand Up @@ -84,6 +84,6 @@ public function setDepth(int $depth): void
*/
public function setValue($value, string $binary): void
{
$this->data[(string) $value] = $binary;
$this->data[$value] = $binary;
}
}

0 comments on commit cd9331d

Please sign in to comment.