Remove PHP % incompatible code

This commit is contained in:
steve-lad 2021-04-02 13:17:33 +02:00 committed by Diederik de Groot
parent 8fb29b93fd
commit 7f93f0179b
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6
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();
$_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)) {

View file

@ -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