diff --git a/libraries/classes/Linter.php b/libraries/classes/Linter.php
index ce39d162e0..71bdf00142 100644
--- a/libraries/classes/Linter.php
+++ b/libraries/classes/Linter.php
@@ -13,11 +13,9 @@ use PhpMyAdmin\SqlParser\UtfString;
use PhpMyAdmin\SqlParser\Utils\Error as ParserError;
use function __;
-use function defined;
use function htmlspecialchars;
use function mb_strlen;
use function sprintf;
-use function strlen;
/**
* The linter itself.
@@ -33,7 +31,7 @@ class Linter
*/
public static function getLines(string|UtfString $str): array
{
- if ((! ($str instanceof UtfString)) && defined('USE_UTF_STRINGS') && USE_UTF_STRINGS) {
+ if ((! ($str instanceof UtfString))) {
// If the lexer uses UtfString for processing then the position will
// represent the position of the character and not the position of
// the byte.
@@ -52,7 +50,7 @@ class Linter
// first byte of the third character. The fourth and the last one
// (which is actually a new line) aren't going to be processed at
// all.
- $len = $str instanceof UtfString ? $str->length() : strlen($str);
+ $len = $str->length();
$lines = [0];
for ($i = 0; $i < $len; ++$i) {
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 20463b678b..899010672f 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -7361,9 +7361,6 @@
$error[3]
-
- USE_UTF_STRINGS
-