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
40
throw new AmountInvalid(/** @scrutinizer ignore-type */ trans('wallet::errors.price_positive'));
Loading history...
41
}
42
30
}
43
44
/**
45
* @param Wallet $object
46
* @return WalletModel
47
*/
48
30
public function getWallet(Wallet $object): WalletModel
49
{
50
30
if ($object instanceof WalletModel) {
51
14
return $object;
52
}
53
54
/**
55
* @var HasWallet $object
56
*/
57
24
return $object->wallet;
58
}
59
60
/**
61
* @param WalletModel $wallet
62
* @return bool
63
*/
64
2
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