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

Fix incorrect mb_substr arguments #799

Merged
merged 1 commit into from
Jan 8, 2016

Conversation

bepsvpt
Copy link
Contributor

@bepsvpt bepsvpt commented Dec 29, 2015

No description provided.

@@ -109,7 +109,7 @@ protected static function appendEnd($text)
{
// extract the last char of $text
if (function_exists('mb_substr')) {
$last = mb_substr($text, mb_strlen($text)-1, 'UTF-8');
$last = mb_substr($text, mb_strlen($text)-1, NULL, 'UTF-8');
Copy link
Contributor

Choose a reason for hiding this comment

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

Contributions should follow PSR2, so the third argument must be in lower case.

fzaninotto added a commit that referenced this pull request Jan 8, 2016
Fix incorrect mb_substr arguments
@fzaninotto fzaninotto merged commit dfa5a40 into fzaninotto:master Jan 8, 2016
@fzaninotto
Copy link
Owner

Thanks!

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