Skip to content

Test BaseActiveRecord::getOldAttribute() after insert and update #785

Test BaseActiveRecord::getOldAttribute() after insert and update

Test BaseActiveRecord::getOldAttribute() after insert and update #785

Triggered via push December 14, 2023 06:26
Status Success
Total duration 17m 39s
Artifacts

mutation.yml

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

Annotations

4 warnings
PHP 8-ubuntu-latest: src/ActiveRelationTrait.php#L253
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if ($this->via instanceof self) { $viaQuery = $this->via; $viaModels = $viaQuery->findJunctionRows($primaryModels); - $this->filterByModels($viaModels); + } elseif (is_array($this->via)) { [$viaName, $viaQuery] = $this->via; if ($viaQuery->asArray === null) {
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L79
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);
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L83
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.
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L304
Escaped Mutant for Mutator "UnwrapUcFirst": --- Original +++ New @@ @@ } public function canGetProperty(string $name, bool $checkVars = true) : bool { - if (method_exists($this, 'get' . ucfirst($name)) || $checkVars && property_exists($this, $name)) { + if (method_exists($this, 'get' . $name) || $checkVars && property_exists($this, $name)) { return true; } try {