Apply fixes from StyleCI #803
Annotations
2 warnings
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#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;
|
The logs for this run have expired and are no longer available.
Loading