CI #104
Annotations
10 warnings
src/Spec/Example.php#L42
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function hasValue() : bool
{
$property = new ReflectionProperty($this, 'value');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
src/Spec/Example.php#L42
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function hasValue() : bool
{
$property = new ReflectionProperty($this, 'value');
- $property->setAccessible(true);
+
return $property->isInitialized($this);
}
/**
|
src/Spec/Header.php#L79
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function hasExample() : bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
src/Spec/Header.php#L79
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function hasExample() : bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+
return $property->isInitialized($this);
}
/**
|
src/Spec/Link.php#L72
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function hasRequestBody() : bool
{
$property = new ReflectionProperty($this, 'requestBody');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
src/Spec/Link.php#L72
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function hasRequestBody() : bool
{
$property = new ReflectionProperty($this, 'requestBody');
- $property->setAccessible(true);
+
return $property->isInitialized($this);
}
/**
|
src/Spec/MediaType.php#L44
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function hasExample() : bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
src/Spec/MediaType.php#L44
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function hasExample() : bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+
return $property->isInitialized($this);
}
/**
|
src/Spec/NullSchema.php#L21
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
{
$data = parent::toArray();
$data['type'] = $this->type;
- return $data;
+ return count($data) > 1 ? array_slice($data, 0, 1, true) : $data;
}
}
|
src/Spec/Parameter.php#L208
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function hasExample() : bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
The logs for this run have expired and are no longer available.
Loading