CI #118
Annotations
10 warnings
src/Spec/Example.php#L42
Escaped Mutant for Mutator "TrueValue":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
{
$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":
@@ @@
public function hasExample(): bool
{
$property = new ReflectionProperty($this, 'example');
- $property->setAccessible(true);
+ $property->setAccessible(false);
return $property->isInitialized($this);
}
/**
|
This job succeeded
Loading