mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -154,18 +154,7 @@ class SmtpTransport extends AbstractTransport
|
||||
|
||||
protected function parseMessageId(string $mtaResult): string
|
||||
{
|
||||
$regexps = [
|
||||
'/250 Ok (?P<id>[0-9a-f-]+)\r?$/mis',
|
||||
'/250 Ok:? queued as (?P<id>[A-Z0-9]+)\r?$/mis',
|
||||
];
|
||||
$matches = [];
|
||||
foreach ($regexps as $regexp) {
|
||||
if (preg_match($regexp, $mtaResult, $matches)) {
|
||||
return $matches['id'];
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
return preg_match('/^250 (?:\S+ )?Ok:?+ (?:queued as |id=)?+(?P<id>[A-Z0-9._-]++)/im', $mtaResult, $matches) ? $matches['id'] : '';
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
@@ -372,15 +361,12 @@ class SmtpTransport extends AbstractTransport
|
||||
$this->restartCounter = 0;
|
||||
}
|
||||
|
||||
public function __sleep(): array
|
||||
public function __serialize(): array
|
||||
{
|
||||
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function __wakeup()
|
||||
public function __unserialize(array $data): void
|
||||
{
|
||||
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user