Skip to content

Commit 8bcb7a4

Browse files
committed
refactor: 优化watch支持8.2,兼容8.0和8.1
1 parent fa9dfc4 commit 8bcb7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function addEvent($serve)
133133
echo CONSOLE_COLOR_DEFAULT;
134134
}
135135
});
136-
Event::wait();
136+
version_compare(PHP_VERSION, '8.1', '>') && Event::wait();
137137
}
138138

139139
function watch()

0 commit comments

Comments
 (0)