You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works correctly in psalm 5.13.1 or lower, but at 5.14.0 there has been some changes that will generate errors when not given all keys found in the definition.
* @param array{
* index: list, // (REQUIRED) A comma-separated list of index names
* local: boolean, // Return local information, do not retrieve the state from master node (default: false)
* ignore_unavailable: boolean, // Ignore unavailable indexes (default: false)
* allow_no_indices: boolean, // Ignore if a wildcard expression resolves to no concrete indices (default: false)
* expand_wildcards: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
* flat_settings: boolean, // Return settings in flat format (default: false)
* include_defaults: boolean, // Whether to return all default setting for each of the indices.
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
* source: string, // The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
* filter_path: list, // A comma-separated list of filters used to reduce the response.
* } $params
This will probably function properly by adding a ? after the keyname in the array-shape.
* @param array{
* index: list, // (REQUIRED) A comma-separated list of index names
* local?: boolean, // Return local information, do not retrieve the state from master node (default: false)
* ignore_unavailable?: boolean, // Ignore unavailable indexes (default: false)
* allow_no_indices?: boolean, // Ignore if a wildcard expression resolves to no concrete indices (default: false)
* expand_wildcards?: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
* flat_settings?: boolean, // Return settings in flat format (default: false)
* include_defaults?: boolean, // Whether to return all default setting for each of the indices.
* pretty?: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
* human?: boolean, // Return human readable values for statistics. (DEFAULT: true)
* error_trace?: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
* source?: string, // The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
* filter_path?: list, // A comma-separated list of filters used to reduce the response.
* } $params
@jaytaph thanks for this PR, I'll have a look. Your proposal sounds good. I need to update the code generator, since these comments are generated using a separate tool.
Array shape declaration of certain methods are not compatible with psalm 5.14.0+.
This works correctly in psalm 5.13.1 or lower, but at 5.14.0 there has been some changes that will generate errors when not given all keys found in the definition.
This will probably function properly by adding a ? after the keyname in the array-shape.
See:
https://psalm.dev/r/fae4b76358 vs https://psalm.dev/r/9b72fe22b5
The text was updated successfully, but these errors were encountered: