Sfoglia il codice sorgente

Add new option to type defs

Jordi Boggiano 3 anni fa
parent
commit
b40d426849
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      src/Monolog/Handler/ElasticsearchHandler.php

+ 4 - 2
src/Monolog/Handler/ElasticsearchHandler.php

@@ -47,12 +47,14 @@ use Elastic\Elasticsearch\Client as Client8;
  * @phpstan-type Options array{
  *     index: string,
  *     type: string,
- *     ignore_error: bool
+ *     ignore_error: bool,
+ *     op_type: 'index'|'create'
  * }
  * @phpstan-type InputOptions array{
  *     index?: string,
  *     type?: string,
- *     ignore_error?: bool
+ *     ignore_error?: bool,
+ *     op_type?: 'index'|'create'
  * }
  */
 class ElasticsearchHandler extends AbstractProcessingHandler