Skip to content

Commit ce20024

Browse files
authored
Add types to ElasticaDataCollector
1 parent a4a0f15 commit ce20024

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/DataCollector/ElasticaDataCollector.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class ElasticaDataCollector extends DataCollector
2525
{
26-
protected $logger;
26+
protected ElasticaLogger $logger;
2727

2828
public function __construct(ElasticaLogger $logger)
2929
{
@@ -78,15 +78,12 @@ public function getExecutionTime()
7878
return $time;
7979
}
8080

81-
/**
82-
* @return string
83-
*/
84-
public function getName()
81+
public function getName(): string
8582
{
8683
return 'elastica';
8784
}
8885

89-
public function reset()
86+
public function reset(): void
9087
{
9188
$this->logger->reset();
9289
$this->data = [];

0 commit comments

Comments
 (0)