Aggiornato Composer

This commit is contained in:
Paolo A
2024-05-17 12:24:19 +00:00
parent 4ac62108b5
commit ec201d75b2
2238 changed files with 38684 additions and 59785 deletions

View File

@@ -109,6 +109,11 @@ abstract class AbstractHeader implements HeaderInterface
}
$phraseStr = $this->encodeWords($header, $string, $usedLength);
}
} elseif (str_contains($phraseStr, '(')) {
foreach (['\\', '"'] as $char) {
$phraseStr = str_replace($char, '\\'.$char, $phraseStr);
}
$phraseStr = '"'.$phraseStr.'"';
}
return $phraseStr;
@@ -195,7 +200,7 @@ abstract class AbstractHeader implements HeaderInterface
$encodingWrapperLength = \strlen('=?'.$charsetDecl.'?'.self::$encoder->getName().'??=');
if ($firstLineOffset >= 75) {
//Does this logic need to be here?
// Does this logic need to be here?
$firstLineOffset = 0;
}
@@ -226,7 +231,7 @@ abstract class AbstractHeader implements HeaderInterface
/**
* Generate a list of all tokens in the final header.
*/
protected function toTokens(string $string = null): array
protected function toTokens(?string $string = null): array
{
if (null === $string) {
$string = $this->getBodyAsString();