CI #827
Annotations
10 warnings
src/Accessor/MethodAccessor.php#L20
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)) {
|
src/Accessor/MethodAccessor.php#L21
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}();
|
src/Accessor/MethodAccessor.php#L22
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}();
}
|
src/Accessor/MethodAccessor.php#L36
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (method_exists($object, $is)) {
return $object->{$is}();
}
- throw SerializerLogicException::createMissingMethod($object::class, [$get, $has, $is]);
+ throw SerializerLogicException::createMissingMethod($object::class, [$has, $is]);
}
}
|
src/Accessor/PropertyAccessor.php#L36
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
private function getClass(object $object) : string
{
- if (interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
+ if (interface_exists('Doctrine\\Persistence\\Proxy') && false) {
if (!$object->__isInitialized()) {
$object->__load();
}
|
src/Accessor/PropertyAccessor.php#L36
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
}
private function getClass(object $object) : string
{
- if (interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
+ if (!interface_exists('Doctrine\\Persistence\\Proxy') && !$object instanceof Proxy) {
if (!$object->__isInitialized()) {
$object->__load();
}
|
src/Accessor/PropertyAccessor.php#L36
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
}
private function getClass(object $object) : string
{
- if (interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
+ if (!interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
if (!$object->__isInitialized()) {
$object->__load();
}
|
src/Accessor/PropertyAccessor.php#L37
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
private function getClass(object $object) : string
{
if (interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
- if (!$object->__isInitialized()) {
+ if ($object->__isInitialized()) {
$object->__load();
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
|
src/Accessor/PropertyAccessor.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
if (interface_exists('Doctrine\\Persistence\\Proxy') && $object instanceof Proxy) {
if (!$object->__isInitialized()) {
- $object->__load();
+
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
if ($reflectionParentClass instanceof \ReflectionClass) {
|
src/Accessor/PropertyAccessor.php#L42
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$object->__load();
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
- if ($reflectionParentClass instanceof \ReflectionClass) {
+ if (true) {
return $reflectionParentClass->getName();
}
}
|
This job succeeded
Loading