Repository navigation
feat: add @valinor-* annotations to override an unparseable type
#1805
Annotations
11 warnings
|
Mutation tests
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v3, actions/cache@v4, actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Mutation tests:
src/Compiler/Native/ValueNode.php#L32
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
if (is_array($value)) {
$compiler = $compiler->write('[');
- $i = 0;
+ $i = -1;
$numItems = count($value);
foreach ($value as $key => $item) {
$compiler = $compiler->write(var_export($key, true) . ' => ');
|
|
Mutation tests:
src/Compiler/Native/ArrayNode.php#L24
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function compile(Compiler $compiler): Compiler
{
if ($this->assignments === []) {
- return $compiler->write('[]');
+
}
$sub = [];
|
|
Mutation tests:
src/Cache/Warmup/RecursiveCacheWarmupService.php#L81
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function warmupClassType(ClassType $type): void
{
if (in_array($type->className(), $this->classesWarmedUp, true)) {
- return;
+
}
$this->classesWarmedUp[] = $type->className();
|
|
Mutation tests:
src/Cache/TypeFilesWatcher.php#L98
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
$files = array_filter($files, is_string(...));
/** @var list<non-empty-string> */
- return array_values($files);
+ return $files;
}
/**
|
|
Mutation tests:
src/Cache/TypeFilesWatcher.php#L95
Escaped Mutant for Mutator "UnwrapArrayFilter":
@@ @@
$files = array_unique($files);
// Filtering the empty/invalid file names
- $files = array_filter($files, is_string(...));
+ $files = $files;
/** @var list<non-empty-string> */
return array_values($files);
|
|
Mutation tests:
src/Cache/FileWatchingCache.php#L79
Escaped Mutant for Mutator "Continue_":
@@ @@
$time = @filemtime($fileName);
if (false === $time) {
- continue;
+ break;
}
$this->timestamps[$key][$fileName] = $time;
|
|
Mutation tests:
src/Cache/FileSystemCache.php#L120
Escaped Mutant for Mutator "Continue_":
@@ @@
if (! $line || ! str_contains($line, self::GENERATED_MESSAGE)) {
$shouldDeleteRootDir = false;
- continue;
+ break;
}
@Unlink($file->getPathname());
|
|
Mutation tests:
src/Cache/FileSystemCache.php#L119
Escaped Mutant for Mutator "FalseValue":
@@ @@
$line = $file->openFile()->getCurrentLine();
if (! $line || ! str_contains($line, self::GENERATED_MESSAGE)) {
- $shouldDeleteRootDir = false;
+ $shouldDeleteRootDir = true;
continue;
}
|
|
Mutation tests:
src/Cache/FileSystemCache.php#L113
Escaped Mutant for Mutator "Continue_":
@@ @@
if (! $file->isFile()) {
$shouldDeleteRootDir = false;
- continue;
+ break;
}
$line = $file->openFile()->getCurrentLine();
|
|
Mutation tests:
src/Cache/FileSystemCache.php#L112
Escaped Mutant for Mutator "FalseValue":
@@ @@
}
if (! $file->isFile()) {
- $shouldDeleteRootDir = false;
+ $shouldDeleteRootDir = true;
continue;
}
|