Fix two new phpstan issues

This commit is contained in:
Aleksander Machniak
2024-08-02 09:12:48 +02:00
parent c706575a0b
commit 89d429dbee
2 changed files with 2 additions and 4 deletions

View File

@@ -204,8 +204,7 @@ class rcube_mime
$tmp[] = $text;
if (!empty($matches[$idx + 1])) {
$next_match = $matches[$idx + 1];
if (count($next_match) >= 2
&& $next_match[0][1] == $start
if ($next_match[0][1] == $start
&& $next_match[1][0] == $charset
&& $next_match[2][0] == $encoding
) {