Skip to content

Fix setting value for an attribute when AR class has get method for the attribute #779

Fix setting value for an attribute when AR class has get method for the attribute

Fix setting value for an attribute when AR class has get method for the attribute #779

Triggered via pull request December 13, 2023 08:46
Status Success
Total duration 5m 51s
Artifacts

mutation.yml

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

Annotations

1 warning
PHP 8-ubuntu-latest: src/BaseActiveRecordTrait.php#L305
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 {