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

Commit 0efd5b1

Browse files
committed
fix some errors, remove .editerconfig
1 parent 5d9fd04 commit 0efd5b1

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

.editorconfig

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/StringHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static function utf8SubStr($str, $start = 0, $end = null): string
153153
* @param bool $suffix 是否加尾缀
154154
* @return string
155155
*/
156-
public static function zhSubStr($str, $start = 0, $length, $charset = 'utf-8', $suffix = true): string
156+
public static function zhSubStr($str, $start = 0, $length = 0, $charset = 'utf-8', $suffix = true): string
157157
{
158158
if (\function_exists('mb_substr')) {
159159
if (mb_strlen($str, $charset) <= $length) {

0 commit comments

Comments
 (0)