CI #698
Annotations
10 warnings
composer test:
src/Accessor/MethodAccessor.php#L22
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
*/
public function setValue(object $object, $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#L24
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#L37
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#L38
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#L39
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#L53
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/Decoder/Decoder.php#L63
Escaped Mutant for Mutator "CatchBlockRemoval":
--- Original
+++ New
@@ @@
@trigger_error(sprintf('%s:decode use %s:decode', self::class, BaseDecoder::class), E_USER_DEPRECATED);
try {
return $this->decoder->decode($data, $contentType);
- } catch (RuntimeException $e) {
- throw new DeserializerRuntimeException($e->getMessage(), $e->getCode(), $e);
} catch (LogicException $e) {
throw new DeserializerLogicException($e->getMessage(), $e->getCode(), $e);
}
}
}
|
composer test:
src/Denormalizer/DateTimeFieldDenormalizer.php#L64
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$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/DateTimeFieldDenormalizer.php#L64
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$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) {
|
The logs for this run have expired and are no longer available.
Loading