Skip to content

Improve provider non-optional argument phrasing#118

Merged
weirdan merged 1 commit intopsalm:masterfrom
AndrolGenhald:patch-1
Feb 11, 2022
Merged

Improve provider non-optional argument phrasing#118
weirdan merged 1 commit intopsalm:masterfrom
AndrolGenhald:patch-1

Conversation

@AndrolGenhald
Copy link
Contributor

I just ran across a case where I added an argument to a test method and forgot to give it a default value, and this made all previous arguments with defaults non-optional. The phrasing here confused me because I could clearly see that the argument it was complaining about had a default value, and it took me a while to find the actual issue that I forgot to add a default value to the new argument.

I just ran across a case where I added an argument to a test method and forgot to give it a default value, and this made all previous arguments with defaults non-optional. The phrasing here confused me because I could clearly see that the argument it was complaining about had a default value, and it took me a while to find the actual issue that I forgot to add a default value to the new argument.
@weirdan weirdan merged commit b1cad15 into psalm:master Feb 11, 2022
@weirdan
Copy link
Member

weirdan commented Feb 11, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants