Fix PHPStan error

This commit is contained in:
Michael 2025-12-14 10:39:07 +00:00 committed by Hypolite Petovan
commit b060be281f

View file

@ -26,7 +26,7 @@ function tesseract_ocr_detection(&$media)
try {
$languages = $ocr->availableLanguages();
if ($languages) {
/** @phpstan-ignore-next-line ignore call of \thiagoalessio\TesseractOCR\Option::lang() */
// @phpstan-ignore-next-line
$ocr->lang(implode('+', $languages));
}
$ocr->tempDir(System::getTempPath());