Skip to content

Commit

Permalink
refactor: Remove unused static method documentation in Elasticsearch …
Browse files Browse the repository at this point in the history
…facade
  • Loading branch information
huangdijia committed Oct 15, 2024
1 parent aafee45 commit 8fe1a74
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/elasticsearch/src/Facade/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,11 @@
*/
class Elasticsearch
{
/**
* 靜態調用.
*/
public static function __callStatic(mixed $method, mixed $params): mixed
{
return self::connection('default')->{$method}(...$params);
}

/**
* 獲取 ES Client.
*/
public static function connection(string $connection = 'default'): Client
{
/** @var \Hyperf\Di\Container $container */
Expand Down

0 comments on commit 8fe1a74

Please sign in to comment.