From 25db9e1dd0eb5ff022ec7f5add5b35ea179c6c4c Mon Sep 17 00:00:00 2001 From: Synchro Date: Thu, 21 Jan 2016 11:04:10 +0100 Subject: [PATCH] Don't use PHP4-style constructors --- benchmarks/Lexer.php | 2 +- tests/Debugger.php | 2 +- tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/Lexer.php b/benchmarks/Lexer.php index d612fc3c..c44e0a5f 100644 --- a/benchmarks/Lexer.php +++ b/benchmarks/Lexer.php @@ -25,7 +25,7 @@ class RowTimer extends Benchmark_Timer public $name; - public function RowTimer($name, $auto = false) + public function __construct($name, $auto = false) { $this->name = htmlentities($name); $this->Benchmark_Timer($auto); diff --git a/tests/Debugger.php b/tests/Debugger.php index 918320a4..87a02adc 100644 --- a/tests/Debugger.php +++ b/tests/Debugger.php @@ -76,7 +76,7 @@ class Debugger public $scope_nextID = 1; public $add_pre = true; - public function Debugger() + public function __construct() { $this->add_pre = !extension_loaded('xdebug'); } diff --git a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php index ab683e36..7121fc42 100644 --- a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php +++ b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php @@ -5,7 +5,7 @@ class HTMLPurifier_AttrDef_CSS_Composite_Testable extends { // 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; } -- 2.11.4.GIT