Creation of PHAR using Nix, in a reproducible environment #1395
Annotations
5 warnings
src/Change.php#L80
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
/** @internal */
public function withFilePositionsIfNotAlreadySet(string|null $file, int|null $line, int|null $column) : self
{
- $instance = clone $this;
+ $instance = $this;
$instance->file ??= $file;
$instance->line ??= $line;
$instance->column ??= $column;
|
src/Formatter/JunitFormatter.php#L52
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$this->output->writeLn(sprintf('<testsuite name="roave/backward-compatibility-check" tests="%d" failures="%d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/junit-team/junit5/732a5400f80c8f446daa8b43eaa4b41b3da929be/platform-tests/src/test/resources/jenkins-junit.xsd">', $changeCount, $changeCount));
foreach ($changes as $change) {
$filename = $change->file === null ? null : Str\replace($change->file, $basePath, '');
- $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), (string) ($change->column ?? '')]));
+ $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', $change->line ?? '', (string) ($change->column ?? '')]));
$this->output->writeLn(sprintf(' <testcase name="%s"><failure type="error" message="%s"/></testcase>', $this->escapeXmlAttribute($name), $this->escapeXmlAttribute(trim($change->__toString()))));
}
$this->output->writeLn('</testsuite>');
|
src/Formatter/JunitFormatter.php#L53
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$this->output->writeLn(sprintf('<testsuite name="roave/backward-compatibility-check" tests="%d" failures="%d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/junit-team/junit5/732a5400f80c8f446daa8b43eaa4b41b3da929be/platform-tests/src/test/resources/jenkins-junit.xsd">', $changeCount, $changeCount));
foreach ($changes as $change) {
$filename = $change->file === null ? null : Str\replace($change->file, $basePath, '');
- $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), (string) ($change->column ?? '')]));
+ $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), $change->column ?? '']));
$this->output->writeLn(sprintf(' <testcase name="%s"><failure type="error" message="%s"/></testcase>', $this->escapeXmlAttribute($name), $this->escapeXmlAttribute(trim($change->__toString()))));
}
$this->output->writeLn('</testsuite>');
|
src/Formatter/JunitFormatter.php#L68
Escaped Mutant for Mutator "BitwiseOr":
--- Original
+++ New
@@ @@
}
private function escapeXmlAttribute(string $value) : string
{
- return htmlspecialchars($value, ENT_XML1 | ENT_COMPAT, 'UTF-8');
+ return htmlspecialchars($value, ENT_XML1 & ENT_COMPAT, 'UTF-8');
}
}
|
src/LocateDependencies/LocateDependenciesViaComposer.php#L66
Escaped Mutant for Mutator "UnwrapFinally":
--- Original
+++ New
@@ @@
private function runInDirectory(callable $callable, string $directoryOfExecution) : void
{
$originalDirectory = Env\current_dir();
- try {
- Env\set_current_dir($directoryOfExecution);
- $callable();
- } finally {
- Env\set_current_dir($originalDirectory);
- }
+ Env\set_current_dir($directoryOfExecution);
+ $callable();
+ Env\set_current_dir($originalDirectory);
}
}
|
The logs for this run have expired and are no longer available.
Loading