File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2121use React \EventLoop \Loop ;
2222use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
2323
24+ use const SIGINT ;
25+
2426class Server
2527{
2628 private INotifyWatcher $ watcher ;
@@ -38,7 +40,8 @@ public function __construct(
3840 $ logger ->info ('Shutting down server... ' );
3941 $ loop ->stop ();
4042 $ logger ->info ('Server stopped ' );
41- exit (0 );
43+
44+ exit (0 ); // phpcs:ignore
4245 });
4346 }
4447
Original file line number Diff line number Diff line change 1818use RuntimeException ;
1919
2020use function inotify_add_watch ;
21+ use function inotify_init ;
2122use function inotify_read ;
2223use function stream_set_blocking ;
2324use function var_dump ;
2425
2526use const DIRECTORY_SEPARATOR ;
27+ use const IN_CLOSE_WRITE ;
28+ use const IN_CREATE ;
29+ use const IN_DELETE ;
30+ use const IN_MODIFY ;
2631
2732class INotifyWatcher
2833{
You can’t perform that action at this time.
0 commit comments