Fix deprecation warning in Modules.php by using an array to store module instances
Resolves issue with dynamic property creation being deprecated in PHP 8.2 and later.
Updated load method to use an array to store module instances, avoiding dynamic property creation.
This change ensures compatibility with PHP 8.2 and later versions.
Deprecated
: Creation of dynamic property Modules::$trongate_pages is deprecated in
D:\xampp\htdocs\testapp\engine\Modules.php
on line
67
Tested on PHP 8.2.14, 8.2.19 and 8.3.7 (latest build of PHP) and is working fine with DC's new homepage update now using Trongate Pages 👍
Fix deprecation warning in Modules.php by using an array to store module instances
Resolves issue with dynamic property creation being deprecated in PHP 8.2 and later. Updated load method to use an array to store module instances, avoiding dynamic property creation. This change ensures compatibility with PHP 8.2 and later versions.
Tested on PHP 8.2.14, 8.2.19 and 8.3.7 (latest build of PHP) and is working fine with DC's new homepage update now using Trongate Pages 👍