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) {