This commit is contained in:
2020-08-31 23:40:02 +08:00
parent d3e5531189
commit a09225952c
+3 -3
View File
@@ -72,12 +72,12 @@ class Annotation extends BaseAnnotation
/** /**
* @return \HttpServer\Events\Http * @return Http
* @throws * @throws
*/ */
public function getHttp() public function getHttp()
{ {
return Snowflake::createObject($this->_classMap['http']); return make($this->_classMap['http'], $this->_classMap['http']);
} }
@@ -87,7 +87,7 @@ class Annotation extends BaseAnnotation
*/ */
public function getWebsocket() public function getWebsocket()
{ {
return Snowflake::createObject($this->_classMap['websocket']); return make($this->_classMap['websocket'], $this->_classMap['websocket']);
} }
/** /**