Skip to content

Commit

Permalink
fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Jun 14, 2024
1 parent e2b9265 commit 2a55153
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
8 changes: 6 additions & 2 deletions classes/DokanCryptoPayWithdrawal.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,15 @@ private function getNetworksById(): array
}

/**
* @param array<mixed> $args
* @param mixed $args
* @return void
*/
public function userSettingForm(array $args): void
public function userSettingForm(mixed $args): void
{
if (!is_array($args)) {
$args = [];
}

$settings = isset($args['payment'][$this->key]) ? $args['payment'][$this->key] : [];
$network = isset($settings['network']) ? json_decode($settings['network']) : (object) [];
$currency = isset($settings['currency']) ? json_decode($settings['currency']) : (object) [];
Expand Down
4 changes: 2 additions & 2 deletions cryptopay-withdrawal-for-dokan.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Plugin Name: CryptoPay Withdrawal for Dokan
* Version: 1.0.3
* Version: 1.0.4
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: Add custom cryptocurrency withdrawal method to Dokan plugin
* Author: BeycanPress LLC
Expand All @@ -20,7 +20,7 @@
* Text Domain: dokan-cryptopay
* Tags: Cryptopay, Cryptocurrency, WooCommerce, WordPress, MetaMask, Trust, Binance, Wallet, Ethereum, Bitcoin, Binance smart chain, Payment, Plugin, Gateway, Moralis, Converter, API, coin market cap, CMC
* Requires at least: 5.0
* Tested up to: 6.5.0
* Tested up to: 6.5.4
* Requires PHP: 8.1
*/

Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: BeycanPress
Tags: Bitcoin, Ethereum, Cryptocurrency, Payments, Dokan
Requires at least: 5.0
Tested up to: 6.5.0
Tested up to: 6.5.4
Requires PHP: 8.1
Stable Tag: 1.0.3
Version: 1.0.3
Stable Tag: 1.0.4
Version: 1.0.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -44,11 +44,14 @@ You can easily translate with Loco translate.

== Changelog ==

= 1.0.4 =
* Fixed: Type error in first installation

= 1.0.2 =
* Updated: Compatibility due to updates in CryptoPay 2.1.0

= 1.0.1 =
*Improved: For CryptoPay 2.0.0
* Improved: For CryptoPay 2.0.0

= 1.0.0 =
* Plugin released.

0 comments on commit 2a55153

Please sign in to comment.