Skip to content

Commit 7e2d978

Browse files
author
Sebastian Krätzig
committed
Fix ternary_to_null_coalescing
1 parent eab5212 commit 7e2d978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpImap/Mailbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ protected function initMailPart(IncomingMail $mail, object $partStructure, $part
18071807
protected function decodeRFC2231(string $string): string
18081808
{
18091809
if (\preg_match("/^(.*?)'.*?'(.*?)$/", $string, $matches)) {
1810-
$data = isset($matches[2]) ? $matches[2] : '';
1810+
$data = $matches[2] ?? '';
18111811
if ($this->isUrlEncoded($data)) {
18121812
$string = $this->decodeMimeStr(\urldecode($data));
18131813
}

0 commit comments

Comments
 (0)