It seems like trans('wallet::errors.price_positive') can also be of type array; however, parameter $message of Bavix\Wallet\Exceptions\...tInvalid::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
39
throw new AmountInvalid(/** @scrutinizer ignore-type */ trans('wallet::errors.price_positive'));
Loading history...
40
}
41
28
}
42
43
/**
44
* @param Wallet $object
45
* @return WalletModel
46
*/
47
28
public function getWallet(Wallet $object): WalletModel
48
{
49
28
if ($object instanceof WalletModel) {
50
8
return $object;
51
}
52
53
/**
54
* @var HasWallet $object
55
*/
56
23
return $object->wallet;
57
}
58
59
/**
60
* @param WalletModel $wallet
61
* @return bool
62
*/
63
1
public function refresh(WalletModel $wallet): bool
It seems like $wallet->getKey() can also be of type boolean and null; however, parameter $key of Bavix\Wallet\Services\ProxyService::set() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation