Lock file maintenance #1396
continuous-integration.yml
on: push
ci
/
Generate job matrix
10s
Check for missing dependencies
29s
Psalm Security Report
26s
Mutation Tests
2m 32s
Rector on Default PHP
35s
Check for Unused Dependencies
24s
Matrix: ci / QA Checks
Annotations
6 warnings
|
Mutation Tests:
src/Helper/Service/FetchTranslatorFromContainer.php#L34
Escaped Mutant for Mutator "Continue_":
@@ @@
}
$service = $container->get($alias);
if (!$service instanceof TranslatorInterface) {
- continue;
+ break;
}
return $service;
}
|
|
Mutation Tests:
src/Helper/HtmlObject.php#L55
Escaped Mutant for Mutator "CastString":
@@ @@
{
$attributes = array_merge(['data' => $data, 'type' => $type], $attributes);
$parameters = implode(PHP_EOL, array_map(fn(string $name, int|float|bool|string $value): string => sprintf(' <param name="%s" value="%s"%s>', $this->escaper->escapeHtmlAttr($name), $this->escaper->escapeHtmlAttr((string) $value), $this->doctype->isXhtml() ? ' /' : ''), array_keys($params), array_values($params)));
- $attributes = (string) new HtmlAttributesSet($this->escaper, $attributes);
+ $attributes = new HtmlAttributesSet($this->escaper, $attributes);
return <<<HTML
<object{$attributes}>
{$parameters}
|
|
Mutation Tests:
src/Helper/HtmlObject.php#L52
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
public function __invoke(string $data, string $type, array $attributes = [], array $params = [], string|null $content = null): string
{
$attributes = array_merge(['data' => $data, 'type' => $type], $attributes);
- $parameters = implode(PHP_EOL, array_map(fn(string $name, int|float|bool|string $value): string => sprintf(' <param name="%s" value="%s"%s>', $this->escaper->escapeHtmlAttr($name), $this->escaper->escapeHtmlAttr((string) $value), $this->doctype->isXhtml() ? ' /' : ''), array_keys($params), array_values($params)));
+ $parameters = implode(PHP_EOL, array_map(fn(string $name, int|float|bool|string $value): string => sprintf(' <param name="%s" value="%s"%s>', $this->escaper->escapeHtmlAttr($name), $this->escaper->escapeHtmlAttr((string) $value), $this->doctype->isXhtml() ? ' /' : ''), array_keys($params), $params));
$attributes = (string) new HtmlAttributesSet($this->escaper, $attributes);
return <<<HTML
<object{$attributes}>
|
|
Mutation Tests:
src/Helper/HtmlList.php#L63
Escaped Mutant for Mutator "LessThan":
@@ @@
} else {
/** @psalm-var list<scalar|list<scalar>> $item */
$itemLength = strlen('</li>' . PHP_EOL);
- if ($itemLength < strlen($list)) {
+ if ($itemLength <= strlen($list)) {
$list = substr($list, 0, strlen($list) - $itemLength) . $this->__invoke($item, $ordered, $attribs, $escape) . '</li>' . PHP_EOL;
} else {
$list .= '<li>' . $this->__invoke($item, $ordered, $attribs, $escape) . '</li>' . PHP_EOL;
|
|
Mutation Tests:
src/Helper/HtmlList.php#L62
Escaped Mutant for Mutator "Concat":
@@ @@
$list .= '<li>' . $markup . '</li>' . PHP_EOL;
} else {
/** @psalm-var list<scalar|list<scalar>> $item */
- $itemLength = strlen('</li>' . PHP_EOL);
+ $itemLength = strlen(PHP_EOL . '</li>');
if ($itemLength < strlen($list)) {
$list = substr($list, 0, strlen($list) - $itemLength) . $this->__invoke($item, $ordered, $attribs, $escape) . '</li>' . PHP_EOL;
} else {
|
|
Mutation Tests:
src/Helper/GravatarImage.php#L83
Escaped Mutant for Mutator "AssignCoalesce":
@@ @@
public function __invoke(string $emailAddress, int $imageSize = 80, array $imageAttributes = [], string $defaultImage = self::DEFAULT_MP, string $rating = self::RATING_G): string
{
$imageAttributes['width'] = $imageAttributes['height'] = $imageSize;
- $imageAttributes['alt'] ??= '';
+ $imageAttributes['alt'] = '';
$imageAttributes['src'] = sprintf('%s/%s?s=%d&r=%s&d=%s', self::GRAVATAR_URL, md5(strtolower(trim($emailAddress))), $imageSize, $rating, $this->escaper->escapeUrl($defaultImage));
return sprintf('<img%s />', (string) new HtmlAttributesSet($this->escaper, $imageAttributes));
}
}
|