Skip to content

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

Test BaseActiveRecord::getOldAttribute() after insert and update

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

Triggered via pull request December 14, 2023 06:28
Status Success
Total duration 19m 21s
Artifacts

mutation.yml

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

Annotations

2 warnings
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.