-
-
Couldn't load subscription status.
- Fork 144
add CloudWatchLogsClient::describeLogGroups() #1914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add CloudWatchLogsClient::describeLogGroups() #1914
Conversation
src/Service/CloudWatchLogs/tests/Integration/CloudWatchLogsClientTest.php
Outdated
Show resolved
Hide resolved
src/Service/CloudWatchLogs/tests/Unit/Input/DescribeLogGroupsRequestTest.php
Outdated
Show resolved
Hide resolved
|
@stof I have little experience with psalm, but gave it a try. Using After that: So I installed psalm globally, which seem to work, but gave a lot of validation messages: and a huge baseline, which is incorrect / not preferred I suppose. I think the quickest way to resolve this is that you generate the baseline? Also feel free to amend the PR. |
|
If you use a different version of Psalm than what our CI uses, getting different list of errors is quite expected, and it will break the CI checks (which will still run the version we use). unfortunately, our CI setup uses an old version of psalm. |
|
@stof ok, what I did:
However, nothing changed to the baseline... Complete output: So I added the lines that were suggested by @jderusse manually to <file src="src/Service/CloudWatchLogs/src/Result/DescribeLogGroupsResponse.php">
<LessSpecificReturnStatement>
<code><![CDATA[$items]]></code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<InheritedProperty::*>]]></code>
</MoreSpecificReturnType>
</file>after which Psalm did not report errors anymore: Hopefully this suffices... |
|
Make sure you rerun the code generator as your generated code is outdated. |
|
@stof ok, also executed |
|
@holtkamp Please also add |
Closes #1913