Move inline comment into the docblock

This commit is contained in:
Jeremy Pry 2017-11-08 10:18:08 -05:00
parent cf5bd606c6
commit 0e43551535
1 changed files with 3 additions and 2 deletions

View File

@ -124,10 +124,11 @@ class WC_Cart extends WC_Legacy_Cart {
/**
* When cloning, ensure object properties are handled.
*
* These properties store a reference to the cart, so we use new instead of clone.
*/
public function __clone() {
// These properties store a reference to the cart, so just use new instead of clone.
$this->session = new WC_Cart_Session( $this );
$this->session = new WC_Cart_Session( $this );
$this->fees_api = new WC_Cart_Fees( $this );
}