You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$speller = newExternalSpeller(...); // In the example I use an abstract class because the error is here$speller->checkText($source, ['en']);
// the command "hunspell -i UTF-8 -a -d en_US" will be generated$speller->checkText($source, ['uk']);
// "hunspell -i UTF-8 -a -d en_US" will also be generated and hunspell will ignore the language change
The problem exist in: mekras/php-speller/src/ExternalSpeller.php method "composeProcess":
privatefunctioncomposeProcess(array$command): Process
{
if ($this->process === null) {
$this->process = newProcess($command);
}
$this->process->setTimeout($this->timeout);
return$this->process;
}
because it caches the "process" and does not use the existing "resetProcess" method to clear them.
The text was updated successfully, but these errors were encountered:
Hi, I found the following error:
The problem exist in:
mekras/php-speller/src/ExternalSpeller.php
method "composeProcess":because it caches the "process" and does not use the existing "resetProcess" method to clear them.
The text was updated successfully, but these errors were encountered: