1. piekielko
  2. RO CSVI
  3. Tuesday, 15 July 2025
  4.  Subscribe via email
I’ve encountered a deprecation warning in PHP related to a dynamic property being created in the VirtueMartCart class within the CSVI VirtueMart addon:

Deprecated: Creation of dynamic property VirtueMartCart::$confirmDone is deprecated in plugins/csviaddon/virtuemart/com_virtuemart/helper/cart.php on line 112


However, confirmDone is not a declared property of the class. There is already a declared property named _confirmDone, which seems to be the correct one. Replacing:
$this->confirmDone = false;

with:
$this->_confirmDone = false;


Resolves the warning and follows the class structure. Please consider fixing this in the official codebase for full compatibility with PHP 8.2+.

Kind regards
Chris


There are no replies made for this post yet.
Be one of the first to reply to this post!