182 add date time interface param #61
Annotations
1 error and 5 warnings
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/CodeGenerator/AttributeGenerator.php#L47
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- Original
+++ New
@@ @@
public function requestPass(?DtoReference $root) : void
{
$this->treeWalk($root, static function (Property $specProperty, PropertyDefinition $property) : void {
- $willExist = $specProperty->isRequired() || $specProperty->getDefaultValue() !== null;
+ $willExist = !$specProperty->isRequired() || !($specProperty->getDefaultValue() !== null);
$property->setHasGetter(true)->setHasSetter(false)->setNullable(!$willExist || $specProperty->isNullable())->setInConstructor(false);
});
}
|
src/CodeGenerator/AttributeGenerator.php#L47
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation":
--- Original
+++ New
@@ @@
public function requestPass(?DtoReference $root) : void
{
$this->treeWalk($root, static function (Property $specProperty, PropertyDefinition $property) : void {
- $willExist = $specProperty->isRequired() || $specProperty->getDefaultValue() !== null;
+ $willExist = !$specProperty->isRequired() || $specProperty->getDefaultValue() !== null;
$property->setHasGetter(true)->setHasSetter(false)->setNullable(!$willExist || $specProperty->isNullable())->setInConstructor(false);
});
}
|
src/Serializer/ArrayDtoSerializer.php#L117
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
$converter = fn($v) => $this->convert($deserialize, $v, $objectType->getSchema());
} else {
$outputClass = null;
- if ($typeId !== null && $this->resolver->isDateTime($typeId)) {
+ if (!($typeId !== null && $this->resolver->isDateTime($typeId))) {
$outputClass = $property->getOutputType();
}
/** @psalm-suppress MissingClosureParamType */
|
src/Serializer/ArrayDtoSerializer.php#L117
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$converter = fn($v) => $this->convert($deserialize, $v, $objectType->getSchema());
} else {
$outputClass = null;
- if ($typeId !== null && $this->resolver->isDateTime($typeId)) {
+ if ($typeId !== null && !$this->resolver->isDateTime($typeId)) {
$outputClass = $property->getOutputType();
}
/** @psalm-suppress MissingClosureParamType */
|
The logs for this run have expired and are no longer available.
Loading