Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Fix: fix invalid parameter of mb_substr() #917

Merged
merged 1 commit into from
Jul 25, 2016

Conversation

tkawaji
Copy link
Contributor

@tkawaji tkawaji commented May 19, 2016

In this PR, fix bug which call mb_substr() with invalid parameter in ja_JP Text.

error message when call $faker->realText:
mb_substr() expects parameter 3 to be integer, string given

@vlakoff
Copy link
Contributor

vlakoff commented Jul 24, 2016

We could do more simply:

mb_substr($text, -1, null, 'UTF-8');

@fzaninotto fzaninotto merged commit 525eabe into fzaninotto:master Jul 25, 2016
@fzaninotto
Copy link
Owner

Thanks!

@tkawaji
Copy link
Contributor Author

tkawaji commented Jul 25, 2016

@vlakoff Thank you for your advice! I will fix them next time.

@fzaninotto Thank you for merging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants