-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix typos #250
Fix typos #250
Conversation
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 @szepeviktor for fixing these typos, I have one suggestion below
@@ -90,7 +90,7 @@ public function iExpectWhenIRunWithArgs( $return, $function, TableNode $args ) { | |||
/** | |||
* @Then I expect :return when I run :function | |||
*/ | |||
public function iExcpectWhenIRun( $return, $function ) { | |||
public function iExpectWhenIRun( $return, $function ) { |
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.
Did you fully check the implications of renaming this method? I know it is a typo, but it is considered code change, what do you think about defining a new alias method to it, and marking this one as deprecated? ex:
/**
* @Then I expect :return when I run :function
*
* @deprected use static::iExpectWhenIRun instead
*/
public function iExcpectWhenIRun( $return, $function ) {
static::iExpectWhenIRun( $return, $function )
}
/**
* @Then I expect :return when I run :function
*/
public function iExpectWhenIRun( $return, $function ) {
$this->iExpectWhenIRunWithArgs( $return, $function, new TableNode( array( array() ) ) );
}
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.
Done.
TBH I treat everything as text when I fix typos.
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.
No worries, it happens, thanks for the fixes
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.
Glad to contribute.
Summary
Found misspellings in docs and in function name.
Contributor checklist
Testing
Reviewer checklist