CI #616
Annotations
1 error and 20 warnings
PHP 8.0
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires chubbyphp/chubbyphp-dev-helper dev-master -> satisfiable by chubbyphp/chubbyphp-dev-helper[dev-master].
- chubbyphp/chubbyphp-dev-helper dev-master requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement.
|
PHP 8.2:
src/Accessor/MethodAccessor.php#L22
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#L23
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#L24
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#L38
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#L38
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#L39
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#L40
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#L44
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/PropertyAccessor.php#L44
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$object->__load();
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
- if ($reflectionParentClass instanceof \ReflectionClass) {
+ if (false) {
return $reflectionParentClass->getName();
}
}
|
PHP 8.2:
src/Encoder/JsonTypeEncoder.php#L16
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
final class JsonTypeEncoder implements TypeEncoderInterface
{
private BaseJsonTypeEncoder $jsonTypeEncoder;
- public function __construct(bool $prettyPrint = false)
+ public function __construct(bool $prettyPrint = true)
{
$this->jsonTypeEncoder = new BaseJsonTypeEncoder($prettyPrint);
}
|
PHP 8.1:
src/Accessor/MethodAccessor.php#L22
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#L23
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#L24
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#L38
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#L38
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#L39
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#L40
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#L44
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.1:
src/Accessor/PropertyAccessor.php#L44
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$object->__load();
}
$reflectionParentClass = (new \ReflectionObject($object))->getParentClass();
- if ($reflectionParentClass instanceof \ReflectionClass) {
+ if (false) {
return $reflectionParentClass->getName();
}
}
|
PHP 8.1:
src/Encoder/JsonTypeEncoder.php#L16
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
final class JsonTypeEncoder implements TypeEncoderInterface
{
private BaseJsonTypeEncoder $jsonTypeEncoder;
- public function __construct(bool $prettyPrint = false)
+ public function __construct(bool $prettyPrint = true)
{
$this->jsonTypeEncoder = new BaseJsonTypeEncoder($prettyPrint);
}
|