From: Thierry Parmentelat Date: Thu, 28 Apr 2022 12:39:59 +0000 (+0200) Subject: the PLCAPI class requires __construct as well in order to move to php8 X-Git-Tag: plcapi-7.1-0~2 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=bc7bd41556e1fd137acf4df415e5dc0f6d5e02c4 the PLCAPI class requires __construct as well in order to move to php8 --- diff --git a/php/plc_api.php b/php/plc_api.php index 551717c..38aa896 100644 --- a/php/plc_api.php +++ b/php/plc_api.php @@ -41,11 +41,11 @@ class PLCAPI { var $calls; var $multicall; - function PLCAPI($auth = NULL, - $server = PLC_API_HOST, - $port = PLC_API_PORT, - $path = PLC_API_PATH, - $cainfo = NULL) { + function __construct($auth = NULL, + $server = PLC_API_HOST, + $port = PLC_API_PORT, + $path = PLC_API_PATH, + $cainfo = NULL) { $this->auth = $auth; $this->server = $server; $this->port = $port;