From 7f93f0179bda29986522cda739549ddbdfa18c88 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Fri, 2 Apr 2021 13:17:33 +0200 Subject: [PATCH] Remove PHP % incompatible code --- Sccp_manager.inc/aminterface/Response.class.php | 4 ++-- Sccp_manager.inc/extconfigs.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sccp_manager.inc/aminterface/Response.class.php b/Sccp_manager.inc/aminterface/Response.class.php index 7362509..60be7bd 100644 --- a/Sccp_manager.inc/aminterface/Response.class.php +++ b/Sccp_manager.inc/aminterface/Response.class.php @@ -248,7 +248,7 @@ class SCCPGeneric_Response extends Response } } - protected function ConvertTableData(string $_tablename, array $_fkey, array $_fields) + protected function ConvertTableData( $_tablename, array $_fkey, array $_fields) { $result = array(); $_rawtable = $this->Table2Array($_tablename); @@ -309,7 +309,7 @@ class SCCPGeneric_Response extends Response return $result; } - public function Table2Array( string $tablename ) + public function Table2Array( $tablename ) { $result =array(); if (empty($tablename) || !is_array($this->_tables)) { diff --git a/Sccp_manager.inc/extconfigs.class.php b/Sccp_manager.inc/extconfigs.class.php index 506126b..0945132 100644 --- a/Sccp_manager.inc/extconfigs.class.php +++ b/Sccp_manager.inc/extconfigs.class.php @@ -414,7 +414,7 @@ class extconfigs return $base_config; } // Type declaration in below function is incompatible with PHP 5 - public function validate_RealTime( string $connector ) + public function validate_RealTime( $connector ) { // This method only checks that asterisk is correctly configured for Realtime // It is preventative and does not change anything for Sccp_manager