Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0

Request #23751 Provide valid constructor for HTML_Template_Sigma
Submitted: 2018-05-21 21:08 UTC
From: wevrem Assigned:
Status: Open Package: HTML_Template_Sigma (version 1.3.0)
PHP Version: Irrelevant OS: Ubuntu18.04
Roadmaps: (Not assigned)    
Subscription  


 [2018-05-21 21:08 UTC] wevrem (Mike Weaver)
Description: ------------ I'm running PHP7.2 and it complains that HTML_Template_Sigma is using a method with the same name as the class, rather than a bona fide constructor, `__constructor`. Can we change that? Test script: --------------- class Template extends \HTML_Template_Sigma { function __construct($tfile, $tdir, $cdir=null) { parent::__construct($tdir, $cdir); $this->loadTemplateFile($tfile); } } Expected result: ---------------- No warning or error expected Actual result: -------------- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTML_Template_Sigma has a deprecated constructor in /usr/share/php/HTML/Template/Sigma.php on line 131

Comments