Skip to content

Commit 396cd16

Browse files
committed
fix missing incomplete type for preg_match
1 parent 520f9b9 commit 396cd16

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/EmailAddress.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function __construct(string $address)
3636
throw new \InvalidArgumentException('Invalid e-mail address: ' . $address);
3737
}
3838

39+
/** @var array{0: non-empty-string, 1: non-empty-string, 2: non-empty-string} $matches */
3940
[$this->address, $this->localPart, $this->domain] = $matches;
4041
}
4142

src/Protocol/Imap/Response/CompletionResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static function fromLine(string $line): self
7777
return new self($line);
7878
}
7979

80+
/** @var array{0: non-empty-string, 1: non-empty-string} $matches */
8081
return new self($matches[1]);
8182
}
8283

0 commit comments

Comments
 (0)