1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6

This commit is contained in:
Jordi Boggiano
2021-05-28 10:29:33 +02:00
parent 5c9d9bf43e
commit 01d104aa78
88 changed files with 791 additions and 180 deletions

View File

@@ -49,13 +49,13 @@ class ElasticsearchHandler extends AbstractProcessingHandler
protected $client;
/**
* @var array Handler config options
* @var mixed[] Handler config options
*/
protected $options = [];
/**
* @param Client $client Elasticsearch Client object
* @param array $options Handler configuration
* @param mixed[] $options Handler configuration
* @param string|int $level The minimum logging level at which this handler will be triggered
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
*/
@@ -96,7 +96,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
/**
* Getter options
*
* @return array
* @return mixed[]
*/
public function getOptions(): array
{
@@ -123,7 +123,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
/**
* Use Elasticsearch bulk API to send list of documents
*
* @param array $records
* @param array[] $records Records + _index/_type keys
* @throws \RuntimeException
*/
protected function bulkSend(array $records): void
@@ -162,7 +162,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
*
* Only the first error is converted into an exception.
*
* @param array $responses returned by $this->client->bulk()
* @param mixed[] $responses returned by $this->client->bulk()
*/
protected function createExceptionFromResponses(array $responses): ElasticsearchRuntimeException
{
@@ -178,7 +178,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
/**
* Creates elasticsearch exception from error array
*
* @param array $error
* @param mixed[] $error
*/
protected function createExceptionFromError(array $error): ElasticsearchRuntimeException
{