PHP 8.2+ throws a warning ""DEPRECATED CDreation of dynamic property ..." on line 90 of Cart.php because the constructor is trying to initialize "currentItem" as opposed to "currentItemId". A careful study of all the code shows that "currentItem" is not referenced anywhere and so it would appear to be an incorrect variable name. The enclosed patch initializes the correct variable and eliminates the warning.
PHP 8.2+ throws a warning ""DEPRECATED CDreation of dynamic property ..." on line 90 of Cart.php because the constructor is trying to initialize "currentItem" as opposed to "currentItemId". A careful study of all the code shows that "currentItem" is not referenced anywhere and so it would appear to be an incorrect variable name. The enclosed patch initializes the correct variable and eliminates the warning.