Skip to content

Refactor Reflection to TypeResolvers #346

Refactor Reflection to TypeResolvers

Refactor Reflection to TypeResolvers #346

Triggered via push August 11, 2024 20:53
Status Failure
Total duration 3m 59s
Artifacts

check.yml

on: push
Matrix: psalm
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 4 warnings
packages
Process completed with exit code 201.
infection: src/ChangeDetector/FileChangeDetector.php#L33
Escaped Mutant for Mutator "FalseValue": @@ @@ public static function fromFile(string $file): self { $mtime = @filemtime($file); - if ($mtime === false) { + if ($mtime === true) { throw new FileIsNotReadable($file); } $xxh3 = @hash_file(self::HASHING_ALGORITHM, $file);
infection: src/ChangeDetector/FileChangeDetector.php#L34
Escaped Mutant for Mutator "Throw_": @@ @@ { $mtime = @filemtime($file); if ($mtime === false) { - throw new FileIsNotReadable($file); + new FileIsNotReadable($file); } $xxh3 = @hash_file(self::HASHING_ALGORITHM, $file); if ($xxh3 === false) {
infection: src/ChangeDetector/PhpExtensionVersionChangeDetector.php#L27
Escaped Mutant for Mutator "LogicalAnd": @@ @@ public static function fromName(string $name): self { $version = phpversion($name); - if ($version === false && !\extension_loaded($name)) { + if ($version === false || !\extension_loaded($name)) { throw new ExtensionIsNotInstalled($name); } return new self($name, $version);
infection: src/ChangeDetector/PhpExtensionVersionChangeDetector.php#L39
Escaped Mutant for Mutator "FalseValue": @@ @@ { /** @var non-empty-string */ $name = $extension->name; - return new self($name, $extension->getVersion() ?? false); + return new self($name, $extension->getVersion() ?? true); } public function changed(): bool {