hyperf / hyperf/watcher

Trying to access array offset on false Watcher.php:80

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
17
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Just noticed the exception thrown inside `watch` command for no reason:

```
Fatal error: Uncaught ErrorException: Trying to access array offset on false in /var/www/html/vendor/hyperf/watcher/src/Watcher.php:80
Stack trace:
#0 /var/www/html/vendor/hyperf/watcher/src/Watcher.php(80): Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler::{closure:Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler::process():30}()
#1 /var/www/html/vendor/hypervel/devtool/src/Commands/WatchCommand.php(64): Hyperf\Watcher\Watcher->run()
#2 /var/www/html/vendor/hyperf/command/src/Command.php(177): Hypervel\Devtool\Commands\WatchCommand->handle()
#3 [internal function]: Hyperf\Command\Command->{closure:Hyperf\Command\Command::execute():174}()
#4 {main}
thrown in /var/www/html/vendor/hyperf/watcher/src/Watcher.php on line 80
[2025-04-27 04:37:57 @335.0] WARNING Channel::~Channel() (ERRNO 10003): channel is destroyed, 1 consumers will be discarded
```

hypervel v0.16 /docker/swoole 6.02

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.