Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions includes/class-taxjar-tax-calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
*/
class TaxJar_Tax_Calculation {

/* Define props to avoid php 8.x dynamic prop deprecation warnings. */
public $cache_time;

public function __construct() {
// Cache rates for 1 hour.
$this->cache_time = HOUR_IN_SECONDS;
Expand Down
4 changes: 4 additions & 0 deletions includes/class-wc-taxjar-download-orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

class WC_Taxjar_Download_Orders {

/* Define props to avoid php 8.x dynamic prop deprecation warnings. */
public $integration;
public $taxjar_download;

public function __construct( $integration ) {
$this->integration = $integration;
$this->taxjar_download = filter_var( $this->integration->get_option( 'taxjar_download' ), FILTER_VALIDATE_BOOLEAN );
Expand Down
10 changes: 10 additions & 0 deletions includes/class-wc-taxjar-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ class WC_Taxjar_Integration extends WC_Settings_API {

protected static $_instance = null;

/* Define props to avoid php 8.x dynamic prop deprecation warnings. */
public $tax_calculations;
public $method_title;
public $method_description;
public $integration_uri;
public $debug;
public $module_loader;
public $customer_sync;
public $transaction_sync;
public $download_orders;
public static $app_uri = 'https://app.taxjar.com/';

/**
Expand Down