Skip to content

Commit 81c0e30

Browse files
committed
added unnecessary redundant setLogger Signature for PHPStan for some unknown reason.
1 parent 0dedaf4 commit 81c0e30

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Elastica/Client/ElasticsearchClient.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@
55
namespace Valantic\ElasticaBridgeBundle\Elastica\Client;
66

77
use Elastica\Client;
8+
use Psr\Log\LoggerInterface;
89

910
/**
1011
* When typehinted, this class provides an Elastica client pre-configured with port and host.
1112
*
1213
* @see ElasticsearchClientFactory
1314
*/
14-
class ElasticsearchClient extends Client {}
15+
class ElasticsearchClient extends Client
16+
{
17+
protected $_logger;
18+
19+
public function setLogger(LoggerInterface $logger): self
20+
{
21+
$this->_logger = $logger;
22+
23+
return $this;
24+
}
25+
}

0 commit comments

Comments
 (0)