CI #824
Annotations
30 warnings
PHP 8.1:
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)) {
|
PHP 8.1:
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}();
|
PHP 8.1:
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}();
}
|
PHP 8.1:
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]);
}
}
|
PHP 8.1:
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();
}
|
PHP 8.1:
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();
}
|
PHP 8.1:
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();
}
|
PHP 8.1:
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();
|
PHP 8.1:
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) {
|
PHP 8.1:
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();
}
}
|
PHP 8.2:
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)) {
|
PHP 8.2:
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}();
|
PHP 8.2:
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}();
}
|
PHP 8.2:
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]);
}
}
|
PHP 8.2:
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();
}
|
PHP 8.2:
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();
}
|
PHP 8.2:
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();
}
|
PHP 8.2:
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();
|
PHP 8.2:
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) {
|
PHP 8.2:
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();
}
}
|
PHP 8.3:
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)) {
|
PHP 8.3:
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}();
|
PHP 8.3:
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}();
}
|
PHP 8.3:
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]);
}
}
|
PHP 8.3:
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();
}
|
PHP 8.3:
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();
}
|
PHP 8.3:
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();
}
|
PHP 8.3:
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();
|
PHP 8.3:
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) {
|
PHP 8.3:
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();
}
}
|