aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N/L10NString.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/L10N/L10NString.php')
-rw-r--r--lib/private/L10N/L10NString.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/L10N/L10NString.php b/lib/private/L10N/L10NString.php
index 472a80a5b75..ea64f17eff3 100644
--- a/lib/private/L10N/L10NString.php
+++ b/lib/private/L10N/L10NString.php
@@ -65,12 +65,12 @@ class L10NString implements \JsonSerializable {
if (is_array($identity)) {
$pipeCheck = implode('', $identity);
- if (strpos($pipeCheck, '|') !== false) {
+ if (str_contains($pipeCheck, '|')) {
return 'Can not use pipe character in translations';
}
$identity = implode('|', $identity);
- } elseif (strpos($identity, '|') !== false) {
+ } elseif (str_contains($identity, '|')) {
return 'Can not use pipe character in translations';
}