This commit is contained in:
2021-09-07 17:23:45 +08:00
parent 217597e3d5
commit 7ce537a76f
+1 -1
View File
@@ -324,7 +324,7 @@ class Kiri
* @param bool $isWorker * @param bool $isWorker
* @throws Exception * @throws Exception
*/ */
public static function clearProcessId($workerId, $isWorker = false) public static function clearProcessId($workerId, bool $isWorker = false)
{ {
clearstatcache(); clearstatcache();
$directory = $isWorker === true ? 'pid/worker' : 'pid/task'; $directory = $isWorker === true ? 'pid/worker' : 'pid/task';