From f9ad787344a94ec4793ab109d0cbeb278ae2b549 Mon Sep 17 00:00:00 2001 From: Leonid Sheikman Date: Thu, 4 Jan 2024 14:51:34 +0300 Subject: [PATCH] optimize --- src/StringHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StringHelper.php b/src/StringHelper.php index f74a997..7c2ec7e 100644 --- a/src/StringHelper.php +++ b/src/StringHelper.php @@ -499,7 +499,7 @@ public static function printVar($mixVar, string $sTitle = ''): void * @param string|null $filename The name of the file in which the replacement is being performed. * @param string|null $searchString The search string. * @param string|null $replaceString The replacement string. - * @param string $enc The encoding. + * @param string|null $enc The encoding. * * @return array Returns an array where the first element (result) is true if the replacement is completed or * no replacement is required, false if an error occurred, and the second element (description) is details. @@ -507,7 +507,7 @@ public static function printVar($mixVar, string $sTitle = ''): void * Возвращает массив, где первый элемент (result) - true, если замена выполнена или замена не требуется, * false если произошла ошибка, а второй элемент (description) - подробности. */ - public static function replaceStringInFile(?string $filename, ?string $searchString, ?string $replaceString = '', $enc = ''): array + public static function replaceStringInFile(?string $filename, ?string $searchString, ?string $replaceString = '', ?string $enc = ''): array { try { // Checking an empty file name