Skip to content

Commit

Permalink
Update Wallet.php
Browse files Browse the repository at this point in the history
changed variable name

Signed-off-by: Kekeocha Justin Chetachukwu <[email protected]>
  • Loading branch information
justinkekeocha authored Sep 12, 2023
1 parent 6643411 commit 14be368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ public function getCurrencyAttribute(): string
return $this->meta['currency'] ?? Str::upper($this->slug);
}

public function updateOrAddMeta(array $array): array
public function updateOrAddMeta(array $meta): array

Check failure on line 161 in src/Models/Wallet.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Bavix\Wallet\Models\Wallet::updateOrAddMeta() has parameter $meta with no value type specified in iterable type array.

Check failure on line 161 in src/Models/Wallet.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Bavix\Wallet\Models\Wallet::updateOrAddMeta() return type has no value type specified in iterable type array.
{
return $this->meta = array_merge($this->meta ?? [], $array);
return $this->meta = array_merge($this->meta ?? [], $meta);
}

protected function initializeMorphOneWallet(): void
Expand Down

0 comments on commit 14be368

Please sign in to comment.