Upd: Remove cache. Add construct attributes #48
Annotations
13 warnings
mutation
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
mutation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
mutation:
src/Reflection/Types/PropertyTypeFactory.php#L31
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
$reflectionType = $property->reflectionProperty->getType();
$type = TypeEnums::TYPE_MIXED;
- $isScalar = true;
+ $isScalar = false;
$isNullable = true;
if ($reflectionType instanceof ReflectionType) {
$type = (string) $reflectionType;
|
mutation:
src/Reflection/Types/PropertyTypeFactory.php#L32
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$reflectionType = $property->reflectionProperty->getType();
$type = TypeEnums::TYPE_MIXED;
$isScalar = true;
- $isNullable = true;
+ $isNullable = false;
if ($reflectionType instanceof ReflectionType) {
$type = (string) $reflectionType;
$isNullable = $reflectionType->allowsNull();
|
mutation:
src/Reflection/Types/PropertyTypeFactory.php#L34
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$type = TypeEnums::TYPE_MIXED;
$isScalar = true;
$isNullable = true;
- if ($reflectionType instanceof ReflectionType) {
+ if (false) {
$type = (string) $reflectionType;
$isNullable = $reflectionType->allowsNull();
}
|
mutation:
src/Reflection/Types/PropertyTypeFactory.php#L35
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$isScalar = true;
$isNullable = true;
if ($reflectionType instanceof ReflectionType) {
- $type = (string) $reflectionType;
+ $type = $reflectionType;
$isNullable = $reflectionType->allowsNull();
}
if ($reflectionType instanceof ReflectionNamedType) {
|
mutation:
src/Reflection/Types/PropertyTypeFactory.php#L55
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
}
if ($type === TypeEnums::TYPE_ARRAY) {
$arrayTypeAttr = $property->getAttributeArguments(ConvertArray::class);
- if ($arrayTypeAttr !== null && isset($arrayTypeAttr[0])) {
+ if ($arrayTypeAttr !== null || isset($arrayTypeAttr[0])) {
$arrayType = $arrayTypeAttr[0];
if (is_array($arrayType)) {
$arrayType = $arrayType[0];
|
mutation:
src/Reflection/Types/TransformableType.php#L22
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*/
public function __construct(public string $name, public bool $isNullable)
{
- parent::__construct($this->name, false, $isNullable);
+ parent::__construct($this->name, true, $isNullable);
}
}
|
mutation:
src/Reflection/Types/TransformableType.php#L22
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function __construct(public string $name, public bool $isNullable)
{
- parent::__construct($this->name, false, $isNullable);
+
}
}
|
mutation:
src/ValueCasting.php#L47
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
if ($this->property->type->isNullable && $value === null) {
return null;
}
- if (($value === '' || $value === []) && $this->property->convertEmptyToNull()) {
+ if (($value === '' || $value !== []) && $this->property->convertEmptyToNull()) {
return null;
}
if ($this->property->notTransform() || $this->property->type->name === TypeEnums::TYPE_MIXED) {
|
mutation:
src/ValueCasting.php#L47
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- Original
+++ New
@@ @@
if ($this->property->type->isNullable && $value === null) {
return null;
}
- if (($value === '' || $value === []) && $this->property->convertEmptyToNull()) {
+ if ((!($value === '') || !($value === [])) && $this->property->convertEmptyToNull()) {
return null;
}
if ($this->property->notTransform() || $this->property->type->name === TypeEnums::TYPE_MIXED) {
|
mutation:
src/ValueCasting.php#L47
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
if ($this->property->type->isNullable && $value === null) {
return null;
}
- if (($value === '' || $value === []) && $this->property->convertEmptyToNull()) {
+ if ($value === '' || $value === [] || $this->property->convertEmptyToNull()) {
return null;
}
if ($this->property->notTransform() || $this->property->type->name === TypeEnums::TYPE_MIXED) {
|
mutation
Unexpected input(s) 'php', valid inputs are ['php-version', 'php-version-file', 'extensions', 'ini-file', 'ini-values', 'coverage', 'tools']
|