Skip to content

update irc link

update irc link #22

Triggered via pull request April 20, 2024 21:32
@ArhellArhell
opened #74
irc
Status Success
Total duration 1m 3s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
mutation / PHP 8.1-ubuntu-latest: src/Mailer.php#L117
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ $factories = []; foreach ([NullTransportFactory::class, SendmailTransportFactory::class, EsmtpTransportFactory::class, NativeTransportFactory::class, SesTransportFactory::class, GmailTransportFactory::class, InfobipTransportFactory::class, MandrillTransportFactory::class, MailgunTransportFactory::class, MailjetTransportFactory::class, OhMySmtpTransportFactory::class, PostmarkTransportFactory::class, SendgridTransportFactory::class, SendinblueTransportFactory::class] as $factoryClass) { if (!class_exists($factoryClass)) { - continue; + break; } $factories[] = Yii::$container->get($factoryClass); }
mutation / PHP 8.1-ubuntu-latest: src/Mailer.php#L181
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $message = $this->signer->sign($message, $this->signerOptions); } $this->getTransport()->send($message); - return true; + return false; } }
mutation / PHP 8.1-ubuntu-latest: src/Message.php#L42
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function __construct(array $config = []) { $this->email = new Email(); - parent::__construct($config); + } public function __clone() {
mutation / PHP 8.1-ubuntu-latest: src/Message.php#L277
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { $name = $options['fileName'] ?? $fileName; $this->email->embedFromPath($fileName, $name, $options['contentType'] ?? FileHelper::getMimeType($fileName)); - return 'cid:' . $name; + return 'cid:'; } /** * @param resource|string $content
mutation / PHP 8.1-ubuntu-latest: src/Message.php#L291
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ throw new InvalidConfigException('A valid file name must be passed when embedding content'); } $this->email->embed($content, $options['fileName'], $options['contentType'] ?? null); - return 'cid:' . $options['fileName']; + return 'cid:'; } /** * @return list<string>
mutation / PHP 8.1-ubuntu-latest: src/Message.php#L394
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ if (!is_string($address)) { // email address without name $addresses[] = new Address($name); - continue; + break; } $addresses[] = new Address($address, $name); }