PHP7 errors fix.

Warning: PHP Deprecated:  Methods with the same name as their class will
not be constructors in a future version of PHP.
This commit is contained in:
MinSoo Kim 2015-12-30 22:43:44 +09:00
parent 2cd07067de
commit c58b5bf4bf
6 changed files with 9 additions and 9 deletions

View file

@ -344,7 +344,7 @@ class SFTPModuleInstaller extends ModuleInstaller
* @param object $package Package information
* @return void
*/
function SFTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -507,7 +507,7 @@ class PHPFTPModuleInstaller extends ModuleInstaller
* @param object $package Package information
* @var void
*/
function PHPFTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -720,7 +720,7 @@ class FTPModuleInstaller extends ModuleInstaller
*
* @param object $package Package information
*/
function FTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -880,7 +880,7 @@ class DirectModuleInstaller extends ModuleInstaller
*
* @param object $package Package information
*/
function DirectModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
}