From 47eb39389059fda26041b5b7db27f721a60c2412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 22 Apr 2024 15:22:49 +0200 Subject: [PATCH] fix foreach phpstan issue --- program/lib/Roundcube/rcube.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 159a34ef986..ee3bf8ba293 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -659,10 +659,9 @@ public function text_exists($name, $domain = null, &$ref_domain = null) // any of loaded domains (plugins) if ($domain == '*') { - // @phpstan-ignore-next-line - foreach ($this->plugins->loaded_plugins() as $domain) { - if (isset($this->texts[$domain . '.' . $name])) { - $ref_domain = $domain; + foreach ($this->plugins->loaded_plugins() as $domain2) { + if (isset($this->texts[$domain2 . '.' . $name])) { + $ref_domain = $domain2; return true; } }