From bc7bd41556e1fd137acf4df415e5dc0f6d5e02c4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 28 Apr 2022 14:39:59 +0200 Subject: [PATCH] the PLCAPI class requires __construct as well in order to move to php8 --- php/plc_api.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.43.0