1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 14:16:42 +02:00

Mark elasticaFormatters $type arg as deprecated

This commit is contained in:
Jordi Boggiano
2020-12-14 13:26:29 +01:00
parent 5fbd261d89
commit ff4378dfbe

View File

@@ -26,15 +26,15 @@ class ElasticaFormatter extends NormalizerFormatter
protected $index; protected $index;
/** /**
* @var string Elastic search document type * @var ?string Elastic search document type
*/ */
protected $type; protected $type;
/** /**
* @param string $index Elastic Search index name * @param string $index Elastic Search index name
* @param string $type Elastic Search document type * @param ?string $type Elastic Search document type, deprecated as of Elastica 7
*/ */
public function __construct(string $index, string $type) public function __construct(string $index, ?string $type)
{ {
// elasticsearch requires a ISO 8601 format date with optional millisecond precision. // elasticsearch requires a ISO 8601 format date with optional millisecond precision.
parent::__construct('Y-m-d\TH:i:s.uP'); parent::__construct('Y-m-d\TH:i:s.uP');