Skip to content

LambdaClient::invokeAsync type incorrect #3004

@gauthierm

Description

@gauthierm

Describe the issue

The LambdaClient::invokeAsync method has two type definitions, the second of which appears to be incorrect and overrides the first.

As I understand the SDK, invokeAsync should return a Promise, but the API docs say it returns a Result. This causes warnings when combined with PHPStan or other type checking tools.

Links

https://github.com/aws/aws-sdk-php/blob/master/src/Lambda/LambdaClient.php#L80-L81

Metadata

Metadata

Assignees

Labels

documentationThis is a problem with documentation.p3This is a minor priority issuequeuedThis issues is on the AWS team's backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions