From 40e9b0151071cbc4ecb50c3413f11f69e50fbf31 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Sat, 13 Mar 2021 11:35:35 +0100 Subject: [PATCH] Correct type declarations type declarations must be lowercase or will be treated as local instance names --- Sccp_manager.inc/aminterface/Response.class.php | 6 +++--- Sccp_manager.inc/extconfigs.class.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sccp_manager.inc/aminterface/Response.class.php b/Sccp_manager.inc/aminterface/Response.class.php index 6ec86d4..0ff2b0d 100644 --- a/Sccp_manager.inc/aminterface/Response.class.php +++ b/Sccp_manager.inc/aminterface/Response.class.php @@ -244,7 +244,7 @@ class SCCPGeneric_Response extends Response } } - protected function ConvertTableData(String $_tablename, Array $_fkey, Array $_fields) + protected function ConvertTableData(string $_tablename, array $_fkey, array $_fields) { $result = array(); $_rawtable = $this->Table2Array($_tablename); @@ -275,7 +275,7 @@ class SCCPGeneric_Response extends Response return $result; } - protected function ConvertEventData(Array $_fkey, Array $_fields) + protected function ConvertEventData(array $_fkey, array $_fields) { $result = array(); @@ -305,7 +305,7 @@ class SCCPGeneric_Response extends Response return $result; } - public function Table2Array( String $tablename ) + public function Table2Array( string $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 8a5461c..d88d078 100644 --- a/Sccp_manager.inc/extconfigs.class.php +++ b/Sccp_manager.inc/extconfigs.class.php @@ -414,7 +414,7 @@ class extconfigs return $base_config; } - public function validate_RealTime( String $connector ) + public function validate_RealTime( string $connector ) { // This method only checks that asterisk is correctly configured for Realtime // It is preventative and does not change anything for Sccp_manager