CI #949
Annotations
10 warnings
composer test:
src/Accessor/MethodAccessor.php#L18
Escaped Mutant for Mutator "UnwrapUcFirst":
@@ @@
*/
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":
@@ @@
{
$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":
@@ @@
*/
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":
@@ @@
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":
@@ @@
{
$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":
@@ @@
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#L69
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$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":
@@ @@
$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":
@@ @@
$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":
@@ @@
$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) {
|
Loading