Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-15 10:23:57 +08:00
parent b0c66c9c6a
commit fa76b5170a
+2 -3
View File
@@ -86,13 +86,12 @@ class Inotify
continue; continue;
} }
$search = array_search($ev['wd'], $this->watchFiles);
var_dump($ev);
//非重启类型 //非重启类型
if (str_ends_with($ev['name'], '.php')) { if (str_ends_with($ev['name'], '.php')) {
Timer::after(3000, fn() => $this->reload($ev['name'])); Timer::after(3000, fn() => $this->reload($search));
$this->isReloading = TRUE; $this->isReloading = TRUE;
} }
} }