Skip to content

Commit

Permalink
php8.2 fixed bug
Browse files Browse the repository at this point in the history
Deprecated: Creation of dynamic property PHPSocketIO\Engine\Protocols\Http\Request::$res is deprecated
Deprecated: Creation of dynamic property PHPSocketIO\Engine\Transports\PollingXHR::$sid is deprecated
Deprecated: Creation of dynamic property PHPSocketIO\Engine\Protocols\Http\Request::$cleanup
Deprecated: Creation of dynamic property PHPSocketIO\Socket::$addedUser is deprecated
Deprecated: Creation of dynamic property PHPSocketIO\Socket::$username is deprecated
  • Loading branch information
hedali1997 committed Nov 7, 2024
1 parent c9fa2e5 commit f97736e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Engine/Protocols/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class Request

public $_query = null;

public $res = null;

public $cleanup = null;

public function __construct($connection, $raw_head)
{
$this->connection = $connection;
Expand Down
2 changes: 2 additions & 0 deletions src/Engine/Transports/PollingXHR.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class PollingXHR extends Polling
{
public $sid = null;

public function __construct()
{
Debug::debug('PollingXHR __construct');
Expand Down
3 changes: 3 additions & 0 deletions src/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class Socket extends Emitter
public $handshake = [];
public $userId = null;
public $isGuest = false;
public $addedUser = null;
public $username = null;


public static $events = [
'error' => 'error',
Expand Down

0 comments on commit f97736e

Please sign in to comment.