0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 00:41:52 +00:00

Don't use PHP4-style constructors

This commit is contained in:
Synchro 2016-01-21 11:04:10 +01:00
parent 913ac6955b
commit fea9ee1f7a
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class RowTimer extends Benchmark_Timer
public $name; public $name;
public function RowTimer($name, $auto = false) public function __construct($name, $auto = false)
{ {
$this->name = htmlentities($name); $this->name = htmlentities($name);
$this->Benchmark_Timer($auto); $this->Benchmark_Timer($auto);

View File

@ -76,7 +76,7 @@ class Debugger
public $scope_nextID = 1; public $scope_nextID = 1;
public $add_pre = true; public $add_pre = true;
public function Debugger() public function __construct()
{ {
$this->add_pre = !extension_loaded('xdebug'); $this->add_pre = !extension_loaded('xdebug');
} }

View File

@ -5,7 +5,7 @@ class HTMLPurifier_AttrDef_CSS_Composite_Testable extends
{ {
// we need to pass by ref to get the mocks in // we need to pass by ref to get the mocks in
public function HTMLPurifier_AttrDef_CSS_Composite_Testable(&$defs) public function __construct(&$defs)
{ {
$this->defs =& $defs; $this->defs =& $defs;
} }