Support literal<T> in PhpDocTypeReflector #362
check.yml
on: push
composer
41s
lint
29s
phpstan
24s
infection
55s
packages
39s
Matrix: psalm
Matrix: test
Annotations
4 warnings
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
{
|