Fix tests #842
Annotations
6 warnings
Run infection.:
src/BaseActiveRecordTrait.php#L159
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->__get($name) !== null;
- } catch (InvalidCallException|UnknownPropertyException) {
+ } catch (UnknownPropertyException) {
return false;
}
}
|
Run infection.:
src/BaseActiveRecordTrait.php#L302
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*/
public function hasProperty(string $name, bool $checkVars = true) : bool
{
- return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false);
+ return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, true);
}
public function canGetProperty(string $name, bool $checkVars = true) : bool
{
|
Run infection.:
src/BaseActiveRecordTrait.php#L305
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false);
}
- public function canGetProperty(string $name, bool $checkVars = true) : bool
+ public function canGetProperty(string $name, bool $checkVars = false) : bool
{
if (method_exists($this, 'get' . ucfirst($name)) || $checkVars && property_exists($this, $name)) {
return true;
|
Run infection.:
src/BaseActiveRecordTrait.php#L321
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
public function canSetProperty(string $name, bool $checkVars = true) : bool
{
- if (method_exists($this, 'set' . ucfirst($name)) || $checkVars && property_exists($this, $name)) {
+ if (method_exists($this, ucfirst($name)) || $checkVars && property_exists($this, $name)) {
return true;
}
try {
|
Run infection.:
src/BaseActiveRecordTrait.php#L321
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
public function canSetProperty(string $name, bool $checkVars = true) : bool
{
- if (method_exists($this, 'set' . ucfirst($name)) || $checkVars && property_exists($this, $name)) {
+ if (method_exists($this, 'set') || $checkVars && property_exists($this, $name)) {
return true;
}
try {
|
Run infection.:
src/BaseActiveRecordTrait.php#L321
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
public function canSetProperty(string $name, bool $checkVars = true) : bool
{
- if (method_exists($this, 'set' . ucfirst($name)) || $checkVars && property_exists($this, $name)) {
+ if (method_exists($this, 'set' . ucfirst($name)) && ($checkVars && property_exists($this, $name))) {
return true;
}
try {
|
The logs for this run have expired and are no longer available.
Loading