Skip to content

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #862

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #862

Triggered via pull request January 3, 2024 02:12
@niqingyangniqingyang
synchronize #280
master
Status Success
Total duration 19m 53s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
PHP 8-ubuntu-latest: 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 {
PHP 8-ubuntu-latest: 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] ?? []); } }