Wrap with brackets ($this->attributes[$name] ?? null)
#793
Annotations
4 warnings
Run infection.:
src/ActiveRelationTrait.php#L374
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
return;
}
$model = reset($models);
- if ($model instanceof ActiveRecordInterface) {
+ if (false) {
/** @var ActiveQuery $relation */
$relation = $model->getRelation($name);
} else {
|
Run infection.:
src/ActiveRelationTrait.php#L387
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if ($model instanceof ActiveRecordInterface) {
foreach ($models as $model) {
$key = $this->getModelKey($model, $relation->getLink());
- if ($model instanceof ActiveRecordInterface) {
+ if (true) {
$model->populateRelation($name, $buckets[$key] ?? []);
}
}
|
Run infection.:
src/BaseActiveRecordTrait.php#L75
Escaped Mutant for Mutator "UnwrapUcFirst":
--- Original
+++ New
@@ @@
/** read property, e.g. getName() */
return $this->{$getter}();
}
- if (method_exists($this, 'set' . ucfirst($name))) {
+ if (method_exists($this, 'set' . $name)) {
throw new InvalidCallException('Getting write-only property: ' . static::class . '::' . $name);
}
throw new UnknownPropertyException('Getting unknown property: ' . static::class . '::' . $name);
|
Run infection.:
src/BaseActiveRecordTrait.php#L79
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if (method_exists($this, 'set' . ucfirst($name))) {
throw new InvalidCallException('Getting write-only property: ' . static::class . '::' . $name);
}
- throw new UnknownPropertyException('Getting unknown property: ' . static::class . '::' . $name);
+ throw new UnknownPropertyException(static::class . '::' . $name);
}
/**
* Returns the relation object with the specified name.
|
The logs for this run have expired and are no longer available.
Loading