Fix dynamic prop declaration warning in cart code
This commit is contained in:
parent
491aa8216c
commit
68b703cc9c
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -18,6 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Legacy cart class.
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
abstract class WC_Legacy_Cart {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue