Skip to content
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

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Fix typos #250

merged 2 commits into from
Aug 8, 2024

Conversation

szepeviktor
Copy link
Contributor

Summary

Found misspellings in docs and in function name.

Contributor checklist

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly
  • I have added tests to cover changes introduced by this pull request
  • All new and existing tests pass

Testing

Reviewer checklist

  • Code changes review
  • Documentation changes review
  • Unit tests pass
  • Static analysis passes

@coveralls
Copy link

coveralls commented Jul 24, 2024

Coverage Status

coverage: 66.312%. remained the same
when pulling d0e06f6 on szepeviktor:typos
into 73814e2 on 10up:trunk.

Copy link
Contributor

@nmolham-godaddy nmolham-godaddy left a 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 ) {
Copy link
Contributor

@nmolham-godaddy nmolham-godaddy Jul 24, 2024

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() ) ) );
}

Copy link
Contributor Author

@szepeviktor szepeviktor Jul 24, 2024

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.

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to contribute.

@nmolham-godaddy nmolham-godaddy merged commit 010d556 into 10up:trunk Aug 8, 2024
8 checks passed
@szepeviktor szepeviktor deleted the typos branch August 8, 2024 04:49
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.

3 participants