diff --git a/src/watcher/composer.json b/src/watcher/composer.json index 2ad1b3cf8..9365c5df0 100644 --- a/src/watcher/composer.json +++ b/src/watcher/composer.json @@ -43,6 +43,9 @@ "cs-fix": "php-cs-fixer fix $1" }, "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + }, "hyperf": { "config": "Hyperf\\Watcher\\ConfigProvider" } diff --git a/src/watcher/src/Option.php b/src/watcher/src/Option.php index 7f968dc7c..4e42cd560 100644 --- a/src/watcher/src/Option.php +++ b/src/watcher/src/Option.php @@ -12,13 +12,14 @@ declare(strict_types=1); namespace Hyperf\Watcher; use Hyperf\Contract\ConfigInterface; +use Hyperf\Watcher\Driver\FswatchDriver; class Option { /** * @var string */ - protected $driver = 'fswatch'; + protected $driver = FswatchDriver::class; /** * @var string