MDL-51784 various: use __construct() for PHP7 compatibility

This commit is contained in:
Marina Glancy
2015-12-11 13:53:59 +08:00
committed by David Monllao
parent 8079f3343f
commit 345f365555
34 changed files with 180 additions and 60 deletions
@@ -29,7 +29,7 @@ class Moxiecode_JSONReader {
var $_location, $_lastLocations;
var $_needProp;
function Moxiecode_JSONReader($data) {
public function __construct($data) {
$this->_data = $data;
$this->_len = strlen($data);
$this->_pos = -1;
@@ -360,7 +360,7 @@ class Moxiecode_JSONReader {
* @package MCManager.utils
*/
class Moxiecode_JSON {
function Moxiecode_JSON() {
public function __construct() {
}
function decode($input) {