-
Notifications
You must be signed in to change notification settings - Fork 8
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 test fixture to skip default parameter value #57
base: main
Are you sure you want to change the base?
Conversation
test seems green, are you sure it is not different rule or you're using latest version? |
Let me check. I tried to replicate the example provided here #36 (comment), but probably I misunderstood how to properly create the fixture. |
final class SkipDefault | ||
{ | ||
public function dontSetParamValue( | ||
string $Id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no default value here, the method call bellow is invalid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added default value. Don't know if the Github Actions will automatically re-run
final class SkipDefault | ||
{ | ||
public function dontSetParamValue( | ||
string $Id = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type should be union per issue example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I am not undestanding how to create the fixture. The bug reported is here: #36 (comment) and in that case the parameter has only one type (int in that case).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probaly the second one #36 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to give you a fixture for the issue that I reported, i.e. the fact that a method called without setting the default value is reported as an error.
Creates fixture for #36