Skip to main content

deprecated message : Creation of dynamic property hikaserialPackType::$app

2 years 1 month ago #363517 by sl1200mk2
-- HikaShop version -- : 5.1.1
-- HikaSerial version -- : 5.0.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.2.23
-- Browser(s) name and version -- : chrome

Hi,

using hikaserial, we got this message :

Deprecated: Creation of dynamic property hikaserialPackType::$app is deprecated in /home/zzzzzz/public_html/administrator/components/com_hikaserial/types/pack.php on line 16

even if error reporting is set to "none". It shows up while modifying end of subscription date on save (administrator/index.php?option=com_hikaserial&ctrl=subscription) :



According to this post : stackoverflow.com/questions/74878889/php...operty-is-deprecated there are solutions.

Waiting the correction, which one do you suggest to implement ?

Thanks

Laurent p/o Nicolas

Please Log in or Create an account to join the conversation.

2 years 1 month ago #363538 by Jerome
Hello,

Thank you for the feedback.
The patch is simple, the best is to simply remove the __construct function
Code:
public function __construct() { $this->app = JFactory::getApplication(); }
Since the Joomla Application is not used anymore in the rest of that class.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.050 seconds
Powered by Kunena Forum