Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
mustanggb authored Feb 25, 2024
1 parent 3466c2e commit 44006d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Pair/Storage/DoctrineStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public function __construct(protected EntityManagerInterface $entityManager, pro
{
}

/**
* {@inheritdoc}
*/
public function loadRatioList(bool $force = false): array
{
if ((false === $force) && (count($this->ratioList) > 0)) {
Expand Down Expand Up @@ -53,7 +56,7 @@ public function loadRatioList(bool $force = false): array
}

/**
* @psalm-param array<string, null|float> $ratioList
* {@inheritdoc}
*/
public function saveRatioList(array $ratioList): void
{
Expand Down
5 changes: 4 additions & 1 deletion src/Pair/Storage/DocumentStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public function __construct(protected DocumentManager $documentManager, protecte
{
}

/**
* {@inheritdoc}
*/
public function loadRatioList(bool $force = false): array
{
if ((false === $force) && (count($this->ratioList) > 0)) {
Expand Down Expand Up @@ -53,7 +56,7 @@ public function loadRatioList(bool $force = false): array
}

/**
* @psalm-param array<string, null|float> $ratioList
* {@inheritdoc}
*/
public function saveRatioList(array $ratioList): void
{
Expand Down

0 comments on commit 44006d8

Please sign in to comment.