Skip to content

Commit adc7151

Browse files
author
子旭 苏
committed
Fix method: session::runUnderOtherSession()
1 parent dab82d5 commit adc7151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static function runUnderOtherSession(string $sid, callable $func, bool $w
138138
cache::select(1);
139139
throw $e;
140140
}
141-
if (! is_array($session_string)) {
141+
if (! is_string($session_string)) {
142142
throw new Swango\HttpServer\Session\Exception\SessionNotExistsException();
143143
}
144144
$session_array = unpack('Jauth/Cagent/Nuid/Ntime', $session_string);

0 commit comments

Comments
 (0)