Update DompdfWrapper.php #1467
Annotations
4 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run mutation tests with pcov and infection/infection:
src/DependencyInjection/NucleosDompdfExtension.php#L30
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- $loader->load('services.php');
+
$container->setParameter('nucleos_dompdf.options', $config['defaults']);
}
}
|
Run mutation tests with pcov and infection/infection:
src/Wrapper/DompdfWrapper.php#L44
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
$pdf = $this->dompdfFactory->create($options);
$pdf->loadHtml($html);
- if ($this->eventDispatcher instanceof EventDispatcherInterface) {
+ if (true) {
$event = new StreamEvent($pdf, $filename, $html);
$this->eventDispatcher->dispatch($event, DompdfEvents::STREAM);
}
|
Run mutation tests with pcov and infection/infection:
src/Wrapper/DompdfWrapper.php#L58
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
$pdf = $this->dompdfFactory->create($options);
$pdf->loadHtml($html);
- if ($this->eventDispatcher instanceof EventDispatcherInterface) {
+ if (true) {
$event = new OutputEvent($pdf, $html);
$this->eventDispatcher->dispatch($event, DompdfEvents::OUTPUT);
}
|
The logs for this run have expired and are no longer available.
Loading