Fix PHP 7.1 websocket compatibility

This commit is contained in:
FusionPBX
2025-07-03 12:02:45 -06:00
committed by GitHub
parent 96275ed9c1
commit 26d8527936
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class base_message {
public function __construct($associative_properties_array = []) {
// Assign the unique object id given by PHP to identify the object
$this->id = spl_object_id($this);
$this->id = md5(spl_object_hash($this));
// Assign the object properties using the associative array provided in constructor
foreach ($associative_properties_array as $property_or_method => $value) {

View File

@@ -1,7 +1,7 @@
<?php
/**
* Description of system_dashboard_service
* Description of base_websocket_system_service
*
* @author Tim Fry <tim@fusionpbx.com>
*/
@@ -22,7 +22,7 @@ abstract class base_websocket_system_service extends service implements websocke
*/
protected $ws_client;
abstract protected function reload_settings(): void;
//abstract protected function reload_settings(): void;
protected static function display_version(): void {
echo "System Dashboard Service 1.0\n";