diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index d81ddf4..3ee9d68 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -25,6 +25,7 @@ 'constant_case' => ['case' => 'lower'], 'combine_consecutive_unsets' => true, 'declare_strict_types' => true, + 'fully_qualified_strict_types' => ['phpdoc_tags' => []], 'general_phpdoc_annotation_remove' => ['annotations' => ['author']], 'header_comment' => ['comment_type' => 'PHPDoc', 'header' => $header, 'location' => 'after_open', 'separate' => 'bottom'], 'increment_style' => ['style' => 'post'], diff --git a/examples/service/consul.php b/examples/service/consul.php index d40e76f..6e00b8b 100644 --- a/examples/service/consul.php +++ b/examples/service/consul.php @@ -16,7 +16,7 @@ const SERVICE_NAME = 'test_service'; run(function () { - $c = new \Swoole\NameResolver\Consul('http://127.0.0.1:8500'); + $c = new Swoole\NameResolver\Consul('http://127.0.0.1:8500'); $c->join('test_service', '127.0.0.1', 9502); var_dump($c->resolve(SERVICE_NAME)); }); diff --git a/examples/service/nacos.php b/examples/service/nacos.php index 460d819..8beece9 100644 --- a/examples/service/nacos.php +++ b/examples/service/nacos.php @@ -16,7 +16,7 @@ const SERVICE_NAME = 'test_service'; run(function () { - $c = new \Swoole\NameResolver\Nacos('http://127.0.0.1:8848'); + $c = new Swoole\NameResolver\Nacos('http://127.0.0.1:8848'); var_dump($c->join(SERVICE_NAME, '127.0.0.1', 9502)); var_dump($c->join(SERVICE_NAME, '127.0.0.1', 9501));