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

  • Posts: 30
  • Thank you received: 4
  • Hikaserial Subscription Hikashop Business
2 months 4 weeks ago #363517

-- 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

Attachments:

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
2 months 4 weeks ago #363538

Hello,

Thank you for the feedback.
The patch is simple, the best is to simply remove the __construct function

	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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

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