CI #797
Annotations
10 warnings
composer test:
src/Accessor/MethodAccessor.php#L18
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
*/
public function setValue(object $object, mixed $value) : void
{
- $set = 'set' . ucfirst($this->property);
+ $set = 'set' . $this->property;
if (!method_exists($object, $set)) {
throw DeserializerLogicException::createMissingMethod($object::class, [$set]);
}
|
composer test:
src/Accessor/MethodAccessor.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$set = 'set' . ucfirst($this->property);
if (!method_exists($object, $set)) {
- throw DeserializerLogicException::createMissingMethod($object::class, [$set]);
+ throw DeserializerLogicException::createMissingMethod($object::class, []);
}
$object->{$set}($value);
}
|
composer test:
src/Accessor/MethodAccessor.php#L33
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
*/
public function getValue(object $object)
{
- $get = 'get' . ucfirst($this->property);
+ $get = 'get' . $this->property;
$has = 'has' . ucfirst($this->property);
$is = 'is' . ucfirst($this->property);
if (method_exists($object, $get)) {
|
composer test:
src/Accessor/MethodAccessor.php#L34
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
public function getValue(object $object)
{
$get = 'get' . ucfirst($this->property);
- $has = 'has' . ucfirst($this->property);
+ $has = 'has' . $this->property;
$is = 'is' . ucfirst($this->property);
if (method_exists($object, $get)) {
return $object->{$get}();
|
composer test:
src/Accessor/MethodAccessor.php#L35
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
{
$get = 'get' . ucfirst($this->property);
$has = 'has' . ucfirst($this->property);
- $is = 'is' . ucfirst($this->property);
+ $is = 'is' . $this->property;
if (method_exists($object, $get)) {
return $object->{$get}();
}
|
composer test:
src/Accessor/MethodAccessor.php#L49
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (method_exists($object, $is)) {
return $object->{$is}();
}
- throw DeserializerLogicException::createMissingMethod($object::class, [$get, $has, $is]);
+ throw DeserializerLogicException::createMissingMethod($object::class, [$has, $is]);
}
}
|
composer test:
src/Accessor/PropertyAccessor.php#L66
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$object->__load();
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
- if ($reflectionParentClass instanceof \ReflectionClass) {
+ if (true) {
return $reflectionParentClass->getName();
}
}
|
composer test:
src/Denormalizer/DateTimeImmutableFieldDenormalizer.php#L49
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$dateTime = $dateTime->setTimezone($this->dateTimeZone);
}
$errors = \DateTimeImmutable::getLastErrors();
- if (false === $errors || 0 === $errors['warning_count'] && 0 === $errors['error_count']) {
+ if (false === $errors || -1 === $errors['warning_count'] && 0 === $errors['error_count']) {
$value = $dateTime;
}
} catch (\Exception) {
|
composer test:
src/Denormalizer/DateTimeImmutableFieldDenormalizer.php#L49
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$dateTime = $dateTime->setTimezone($this->dateTimeZone);
}
$errors = \DateTimeImmutable::getLastErrors();
- if (false === $errors || 0 === $errors['warning_count'] && 0 === $errors['error_count']) {
+ if (false === $errors || 0 === $errors['warning_count'] && -1 === $errors['error_count']) {
$value = $dateTime;
}
} catch (\Exception) {
|
composer test:
src/Denormalizer/DateTimeImmutableFieldDenormalizer.php#L49
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
$dateTime = $dateTime->setTimezone($this->dateTimeZone);
}
$errors = \DateTimeImmutable::getLastErrors();
- if (false === $errors || 0 === $errors['warning_count'] && 0 === $errors['error_count']) {
+ if (false === $errors || 0 === $errors['warning_count'] && 0 !== $errors['error_count']) {
$value = $dateTime;
}
} catch (\Exception) {
|
The logs for this run have expired and are no longer available.
Loading