Skip to content

Commit

Permalink
fix foreach phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Apr 22, 2024
1 parent 19db835 commit 1ebb672
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions program/lib/Roundcube/rcube.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1ebb672

Please sign in to comment.