Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Scott committed Feb 14, 2018
1 parent 81eaf39 commit 803fe5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/StopWords.php
Expand Up @@ -106,7 +106,7 @@ public function getStopwordCount(string $content): WordStats {
*
* @return array
*/
public function getCandidateWords(string $strippedInput): string {
public function getCandidateWords(string $strippedInput): array {
// Simple separating words in Japanese.
if ($this->getLanguage() === 'ja') {
$regexp = '/(' . implode('|', array_map('preg_quote', $this->getWordList())) . ')/';
Expand Down

0 comments on commit 803fe5b

Please sign in to comment.