mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°9319 increase php min. version to 8.2 (#887)
* Update minimum PHP version to 8.2 * Fix previous wrong resolution of merge conflict
This commit is contained in:
@@ -47,9 +47,10 @@ final class WrappedTemplatedEmail
|
||||
{
|
||||
$file = $this->twig->getLoader()->getSourceContext($image);
|
||||
$body = $file->getPath() ? new File($file->getPath()) : $file->getCode();
|
||||
$this->message->addPart((new DataPart($body, $image, $contentType))->asInline());
|
||||
$dataPart = (new DataPart($body, $image, $contentType))->asInline();
|
||||
$this->message->addPart($dataPart);
|
||||
|
||||
return 'cid:'.$image;
|
||||
return 'cid:'.$dataPart->getContentId();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user