This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace HttpServer\Abstracts;
@@ -9,5 +9,5 @@ use Swoole\Coroutine;
abstract class BaseContext
{
protected static $pool = [];
protected static array $pool = [];
}
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace HttpServer\Abstracts;
@@ -52,7 +52,7 @@ abstract class Callback extends Application
const EVENT_EXIT = 'WORKER:EXIT';
private $_MESSAGE = [
private array $_MESSAGE = [
self::EVENT_ERROR => 'The server error. at No.',
self::EVENT_STOP => 'The server stop. at No.',
self::EVENT_EXIT => 'The server exit. at No.',
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace HttpServer\Abstracts;
+2 -2
View File
@@ -5,7 +5,7 @@
* Date: 2018/11/8 0008
* Time: 18:37
*/
declare(strict_types=1);
namespace HttpServer\Abstracts;
@@ -20,7 +20,7 @@ abstract class ServerBase extends Application
{
/** @var Server */
protected $server;
protected Server $server;
/**
* @return Server