From b40d4268492da7da233fc5a22bec1a7474058030 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 4 Feb 2023 21:45:58 +0100 Subject: [PATCH] Add new option to type defs --- src/Monolog/Handler/ElasticsearchHandler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/ElasticsearchHandler.php b/src/Monolog/Handler/ElasticsearchHandler.php index 89594cd8..74cc7b6e 100644 --- a/src/Monolog/Handler/ElasticsearchHandler.php +++ b/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