Skip to content

Commit

Permalink
Merge pull request #289 from imk812/master
Browse files Browse the repository at this point in the history
Changes for using with php 8.2
  • Loading branch information
walkor authored Jun 25, 2023
2 parents b89b3f2 + 2504223 commit c4ca48f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Engine/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use \PHPSocketIO\Debug;
class Engine extends Emitter
{
public $server;
public $pingTimeout = 60;
public $pingInterval = 25;
public $upgradeTimeout = 5;
Expand Down
2 changes: 2 additions & 0 deletions src/Nsp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use PHPSocketIO\Parser\Parser;
class Nsp extends Emitter
{
public $adapter;
public $name = null;
public $server = null;
public $rooms = array();
Expand Down Expand Up @@ -99,6 +100,7 @@ public function emit($ev = null)
$args = func_get_args();
if (isset(self::$events[$ev]))
{
call_user_func_array(array(get_parent_class(__CLASS__), 'emit'), $args);
call_user_func_array(array(__CLASS__, 'parent::emit'), $args);
}
else
Expand Down
2 changes: 2 additions & 0 deletions src/SocketIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
use PHPSocketIO\Engine\Engine;
class SocketIO
{
public $worker;
public $sockets;
public $nsps = array();
protected $_nsp = null;
protected $_socket = null;
Expand Down

0 comments on commit c4ca48f

Please sign in to comment.