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

Simplify the startsWith method #3

Merged
merged 3 commits into from
Aug 1, 2017
Merged

Simplify the startsWith method #3

merged 3 commits into from
Aug 1, 2017

Conversation

Nek-
Copy link
Member

@Nek- Nek- commented May 9, 2017

This is a BC Break. Should be merge in a new stable version.

endWith may be simplify as well

StringTools.php Outdated
@@ -24,11 +24,11 @@ public static function camelize($str, $from = '_')
* @param string $encoding
* @return bool
*/
public static function startsWith($str, $start, $encoding = 'UTF-8')
public static function startsWith($str, $start)
Copy link
Member Author

Choose a reason for hiding this comment

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

what about change to "startWith" ? :)

Copy link

Choose a reason for hiding this comment

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

@Nek- nop, it's correct like that 🤔

Copy link

@valanz valanz left a comment

Choose a reason for hiding this comment

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

Don't forget to change the doc 🙂

@Nek-
Copy link
Member Author

Nek- commented Aug 1, 2017

@valanz fixed

@Nek- Nek- merged commit 4ad260e into master Aug 1, 2017
@Nek- Nek- deleted the Nek--patch-1 branch August 1, 2017 12:35
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