Skip to content

Commit

Permalink
fix(core): 修复全包验证类使用错误的注入
Browse files Browse the repository at this point in the history
zhiyicx/thinksns-plus-android#2174
  • Loading branch information
medz committed Aug 22, 2018
1 parent e3a33bd commit a92fa24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Requests/API2/NewStoreUserWallerCashPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ public function authorize()
*
* @return array
*/
public function rules(UserWalletCashType $typeRepository, CashMinAmountRepository $minAmountRepository)
public function rules(): array
{
$typeRepository = app(UserWalletCashType::class);
$minAmountRepository = app(CashMinAmountRepository::class);
$wallet = new Wallet($this->user());

return [
Expand Down

0 comments on commit a92fa24

Please sign in to comment.