Skip to content

Commit

Permalink
修复 [] operator not supported for strings (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 14, 2019
1 parent 6131358 commit efaec60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Chinese/Driver/Pinyin/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ public function parseResult($list, $mode, $wordSplit)
$result = [];
if($isPinyin)
{
$result['pinyin'] = [''];
$result['pinyin'] = [[]];
}
if($isPinyinSound)
{
$result['pinyinSound'] = [''];
$result['pinyinSound'] = [[]];
}
if($isPinyinSoundNumber)
{
$result['pinyinSoundNumber'] = [''];
$result['pinyinSoundNumber'] = [[]];
}
if($isPinyinFirst)
{
$result['pinyinFirst'] = [''];
$result['pinyinFirst'] = [[]];
}
$oldResultCount = null;
foreach($list as $item)
Expand Down

0 comments on commit efaec60

Please sign in to comment.