Skip to content

Refactor delete...() methods #855

Refactor delete...() methods

Refactor delete...() methods #855

Triggered via pull request January 2, 2024 09:33
Status Success
Total duration 9m 42s
Artifacts

mutation.yml

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

Annotations

5 warnings
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L299
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * {@see canGetProperty()} * {@see canSetProperty()} */ - public function hasProperty(string $name, bool $checkVars = true) : bool + public function hasProperty(string $name, bool $checkVars = false) : bool { return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false); }
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L301
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ */ public function hasProperty(string $name, bool $checkVars = true) : bool { - return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false); + return $this->canGetProperty($name, $checkVars) && $this->canSetProperty($name, false); } public function canGetProperty(string $name, bool $checkVars = true) : bool {
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L302
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ */ public function hasProperty(string $name, bool $checkVars = true) : bool { - return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false); + return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, true); } public function canGetProperty(string $name, bool $checkVars = true) : bool {
PHP 8-ubuntu-latest: 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;
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L307
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 {