Преглед изворни кода

Add new option to type defs

Jordi Boggiano пре 2 година
родитељ
комит
b40d426849
1 измењених фајлова са 4 додато и 2 уклоњено
  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