Skip to content

Commit

Permalink
fix: ERROR Non-static method
Browse files Browse the repository at this point in the history
Change following methods
public function addingTransactionTypes()
public function subtractingTransactionTypes()
public function autoRecalculationActive()
into
public static function addingTransactionTypes()
public static function subtractingTransactionTypes()
public static function autoRecalculationActive()

On YemeniOpenSource\LaravelWallet\Services\WalletService
  • Loading branch information
muath-ye committed Dec 17, 2023
1 parent 230ef1c commit 4580637
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"name": "yemenopensource/laravel-wallet",
"description": "Laravel wallet is a package with expressive pronounced syntax that provide top-notch development covering deposits, withdrawals, transactions and balances all quite simply.",
"keywords": [
"yemeni-open-source",
"yemenopensource",
"yos",
"laravel-wallet",
"virtual",
"currency",
"credits",
"wallet",
"payment"
"payment",
"muath-ye"
],
"type": "library",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/Services/WalletService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

class WalletService
{
public function addingTransactionTypes()
public static function addingTransactionTypes()
{
return config('wallet.adding_transaction_types', []);
}

public function subtractingTransactionTypes()
public static function subtractingTransactionTypes()
{
return config('wallet.subtracting_transaction_types', []);
}

public function autoRecalculationActive()
public static function autoRecalculationActive()
{
return config('auto_recalculate_balance', false);
}
Expand Down

0 comments on commit 4580637

Please sign in to comment.