Fix NAN #160
check.yml
on: push
check
/
composer
21s
check
/
php-cs-fixer
19s
check
/
rector
20s
check
/
infection
45s
Matrix: check / phpstan
Matrix: check / psalm
Matrix: check / test
Annotations
5 warnings
|
check / infection:
src/Type/Property.php#L20
Escaped Mutant for Mutator "FalseValue":
@@ @@
/**
* @param non-empty-string $name
*/
- public function __construct(public string $name, public Type $type = MixedT::T, public bool $isOptional = false)
+ public function __construct(public string $name, public Type $type = MixedT::T, public bool $isOptional = true)
{
}
}
|
|
check / infection:
src/Type/Parameter.php#L21
Escaped Mutant for Mutator "FalseValue":
@@ @@
/**
* @param ?non-empty-string $name
*/
- public function __construct(public Type $type, public bool $hasDefault = false, public bool $isPassedByReference = false, public bool $isVariadic = false, public ?string $name = null)
+ public function __construct(public Type $type, public bool $hasDefault = false, public bool $isPassedByReference = false, public bool $isVariadic = true, public ?string $name = null)
{
}
}
|
|
check / infection:
src/Type/Parameter.php#L20
Escaped Mutant for Mutator "FalseValue":
@@ @@
/**
* @param ?non-empty-string $name
*/
- public function __construct(public Type $type, public bool $hasDefault = false, public bool $isPassedByReference = false, public bool $isVariadic = false, public ?string $name = null)
+ public function __construct(public Type $type, public bool $hasDefault = false, public bool $isPassedByReference = true, public bool $isVariadic = false, public ?string $name = null)
{
}
}
|
|
check / infection:
src/Type/Parameter.php#L19
Escaped Mutant for Mutator "FalseValue":
@@ @@
/**
* @param ?non-empty-string $name
*/
- public function __construct(public Type $type, public bool $hasDefault = false, public bool $isPassedByReference = false, public bool $isVariadic = false, public ?string $name = null)
+ public function __construct(public Type $type, public bool $hasDefault = true, public bool $isPassedByReference = false, public bool $isVariadic = false, public ?string $name = null)
{
}
}
|
|
check / infection:
src/Type/ArrayElement.php#L17
Escaped Mutant for Mutator "FalseValue":
@@ @@
*/
final readonly class ArrayElement
{
- public function __construct(public int|string $key, public Type $type, public bool $isOptional = false)
+ public function __construct(public int|string $key, public Type $type, public bool $isOptional = true)
{
}
}
|