Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #869
Annotations
3 warnings
Run infection.:
src/ActiveRelationTrait.php#L368
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
*/
private function populateInverseRelation(array &$primaryModels, array $models, string $primaryName, string $name) : void
{
- if (empty($models) || empty($primaryModels)) {
+ if (empty($models) && empty($primaryModels)) {
return;
}
$model = reset($models);
|
Run infection.:
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);
}
|
Run infection.:
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 {
|
The logs for this run have expired and are no longer available.
Loading