Remove PHP % incompatible code

This commit is contained in:
steve-lad 2021-04-02 13:17:33 +02:00
parent 42717424a2
commit 45db467e5d
2 changed files with 3 additions and 3 deletions

View file

@ -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(); $result = array();
$_rawtable = $this->Table2Array($_tablename); $_rawtable = $this->Table2Array($_tablename);
@ -309,7 +309,7 @@ class SCCPGeneric_Response extends Response
return $result; return $result;
} }
public function Table2Array( string $tablename ) public function Table2Array( $tablename )
{ {
$result =array(); $result =array();
if (empty($tablename) || !is_array($this->_tables)) { if (empty($tablename) || !is_array($this->_tables)) {

View file

@ -415,7 +415,7 @@ class extconfigs
return $base_config; return $base_config;
} }
// Type declaration in below function is incompatible with PHP 5 // 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 // This method only checks that asterisk is correctly configured for Realtime
// It is preventative and does not change anything for Sccp_manager // It is preventative and does not change anything for Sccp_manager