This commit is contained in:
2021-04-15 16:34:12 +08:00
parent 2f5f86a5ab
commit 1a24daf8dc
4 changed files with 9 additions and 12 deletions
+1 -3
View File
@@ -13,8 +13,7 @@ use Snowflake\Snowflake;
trait Server
{
/** @var Application */
public $application;
public ?Application $application = null;
/**
@@ -26,7 +25,6 @@ trait Server
*/
public function __construct($host, $port = null, $mode = null, $sock_type = null)
{
$this->application = Snowflake::app();
parent::__construct($host, $port, $mode, $sock_type);
}