Fix dynamic prop declaration warning in cart code

This commit is contained in:
Jorge A. Torres 2023-06-02 09:21:42 -05:00
parent 491aa8216c
commit 68b703cc9c
2 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,13 @@ final class WC_Cart_Totals {
'discounts_total' => 0,
);
/**
* Cache of tax rates for a given tax class.
*
* @var array
*/
protected $item_tax_rates;
/**
* Sets up the items provided, and calculate totals.
*

View File

@ -18,6 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* Legacy cart class.
*/
#[AllowDynamicProperties]
abstract class WC_Legacy_Cart {
/**