Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 7, 2022
1 parent c216ce9 commit 941db25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/BaseMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public function __init(): void

/**
* 获取本机IP.
*
* @return string
*/
protected function getLocalIP()
protected function getLocalIP(): string
{
$list = swoole_get_local_ip();
if ($this->interface)
Expand Down

0 comments on commit 941db25

Please sign in to comment.