Skip to content

Commit

Permalink
修复 PHP 7.4 兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Dec 6, 2019
1 parent 57b5d6e commit b0d4fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chinese/PinyinSplit.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function extractPinyins($lastStr = '', $lastStrSpace = '', $index = 0)
$bigHasResult = false;
foreach($this->stacks[$index] as $item)
{
if(!$item['isPinyin'])
if(true === $item || !$item['isPinyin'])
{
continue;
}
Expand Down

0 comments on commit b0d4fb1

Please sign in to comment.