Skip to content

Commit

Permalink
Update vaga
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Jan 24, 2024
1 parent 0d40f33 commit c29abf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public static function isSwoole(array $args): bool
public static function isWorkerMan(array $args): bool
{
if (count($args) == 1) {
list($connection) = $args;
if ($connection instanceof \Workerman\Connection\TcpConnection) {
list($request) = $args;
if ($request instanceof \Workerman\Protocols\Http\Request) {
return true;
}
}
Expand Down

0 comments on commit c29abf0

Please sign in to comment.