Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 5.3, 5.5, 5.6 and 7.0 deprecation fixes #1428

Merged
merged 15 commits into from
Apr 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reintroduced old-style constructors for BC
vidarl committed Apr 3, 2019
commit 6a4842efe939630b3fc98bc72822b0ec89727533
7 changes: 7 additions & 0 deletions extension/ezoe/modules/ezoe/classes/SpellChecker.php
Original file line number Diff line number Diff line change
@@ -16,6 +16,13 @@ function __construct(&$config) {
$this->_config = $config;
}

/**
* @deprecated Use SpellChecker::__construct() instead
* @param $config
*/
function SpellChecker(&$config) {
self::__construct($config);
}
/**
* Simple loopback function everything that gets in will be send back.
*
15 changes: 15 additions & 0 deletions extension/ezoe/modules/ezoe/classes/utils/mcejson.php
Original file line number Diff line number Diff line change
@@ -45,6 +45,14 @@ function __construct($data) {
$this->_needProp = false;
}

/**
* @deprecated Use Moxiecode_JSONReader::__construct() instead
* @param $data
*/
function Moxiecode_JSONReader($data) {
self::__construct($data);
}

function getToken() {
return $this->_token;
}
@@ -370,6 +378,13 @@ class Moxiecode_JSON {
function __construct() {
}

/**
* @deprecated Use Moxiecode_JSON::__construct() instead
*/
function Moxiecode_JSON() {
self::__construct();
}

function decode($input) {
$reader = new Moxiecode_JSONReader($input);

10 changes: 10 additions & 0 deletions lib/ezpdf/classes/class.ezpdftable.php
Original file line number Diff line number Diff line change
@@ -49,6 +49,16 @@ function __construct($paper='a4',$orientation='portrait')
$this->FrontpageID = null;
}

/**
* @deprecated Use eZPDFTable::__construct() instead
* @param string $paper
* @param string $orientation
*/
function eZPDFTable($paper='a4',$orientation='portrait')
{
self::__construct($paper,$orientation);
}

/*!
* \private
* Initialize footer and header frame margins. Called by constructor