Skip to content

Commit 0d3ad09

Browse files
committed
fix: Replace str_contains()
1 parent b3cb726 commit 0d3ad09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎system/Commands/Translation/LocalizationFinder.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private function findTranslationsInFile($file): array
154154

155155
private function isIgnoredFile(SplFileInfo $file): bool
156156
{
157-
if ($file->isDir() || str_contains($file->getRealPath(), $this->languagePath)) {
157+
if ($file->isDir() || $this->isSubDirectory($file->getRealPath(), $this->languagePath)) {
158158
return true;
159159
}
160160

0 commit comments

Comments
 (0)