Update actions/cache action to v4 #4553
Annotations
12 warnings
Mutation tests (locked, 8.1, ubuntu-latest)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Mapping/ExpandTags.php#L65
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
assert($definition instanceof Definition);
assert(is_array($annotations) && $annotations !== []);
$this->appendTags($definition, $annotations);
- $container->addResource(new FileResource($file));
+
}
}
/**
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Mapping/ExpandTags.php#L84
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$className = $definition->getClass();
assert(is_string($className));
if (!class_exists($className)) {
- continue;
+ break;
}
$class = new ReflectionClass($className);
$annotations = $reader->getClassAnnotations($class);
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/ErrorHandling/RegisterDefaultComponents.php#L34
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
private function hasService(ContainerBuilder $container, string $service) : bool
{
- return $container->hasAlias($service) || $container->hasDefinition($service);
+ return $container->hasAlias($service) && $container->hasDefinition($service);
}
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L152
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
{
$list = [];
foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) {
- foreach ($tags as $tag) {
+ foreach (array() as $tag) {
$priority = (int) ($tag['priority'] ?? 0);
$path = (string) ($tag['path'] ?? '/');
$list[$priority][$path] ??= [];
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L153
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$list = [];
foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) {
foreach ($tags as $tag) {
- $priority = (int) ($tag['priority'] ?? 0);
+ $priority = (int) ($tag['priority'] ?? 1);
$path = (string) ($tag['path'] ?? '/');
$list[$priority][$path] ??= [];
$list[$priority][$path][] = $serviceId;
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L153
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
$list = [];
foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) {
foreach ($tags as $tag) {
- $priority = (int) ($tag['priority'] ?? 0);
+ $priority = $tag['priority'] ?? 0;
$path = (string) ($tag['path'] ?? '/');
$list[$priority][$path] ??= [];
$list[$priority][$path][] = $serviceId;
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L201
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
}
- return $prioritised;
+ return count($prioritised) > 1 ? array_slice($prioritised, 0, 1, true) : $prioritised;
}
/** @param string[] $services */
private function registerServiceLocator(ContainerBuilder $container, array $services) : Reference
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L221
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
/** @param mixed[] $arguments */
private function createService(string $class, array $arguments = []) : Definition
{
- return (new Definition($class, $arguments))->setPublic(false);
+ return (new Definition($class, $arguments))->setPublic(true);
}
/**
* @param list<array{path: string, route_name: string, behavior: string, methods?: list<string>, async: bool, serviceId: string}> $routes
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L248
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
foreach ($routes as $route) {
// @phpstan-ignore-next-line
$services[] = $this->{self::BEHAVIORS[$route['behavior']]['callback']}('http.route.' . $route['route_name'], $route, $container);
- $aliases['.http.route.' . $route['route_name']] = 'http.route.' . $route['route_name'];
+ $aliases[$route['route_name'] . '.http.route.'] = 'http.route.' . $route['route_name'];
}
$middleware = [];
foreach ($middlewareList as $path => $servicesIds) {
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/Routing/Mezzio/RegisterServices.php#L248
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
foreach ($routes as $route) {
// @phpstan-ignore-next-line
$services[] = $this->{self::BEHAVIORS[$route['behavior']]['callback']}('http.route.' . $route['route_name'], $route, $container);
- $aliases['.http.route.' . $route['route_name']] = 'http.route.' . $route['route_name'];
+ $aliases['.http.route.'] = 'http.route.' . $route['route_name'];
}
$middleware = [];
foreach ($middlewareList as $path => $servicesIds) {
|
Mutation tests (locked, 8.1, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|