Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #816
Annotations
8 warnings
Run infection.:
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) {
|
Run infection.:
src/BaseActiveRecordTrait.php#L159
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->__get($name) !== null;
- } catch (InvalidCallException|UnknownPropertyException) {
+ } catch (UnknownPropertyException) {
return false;
}
}
|
Run infection.:
src/BaseActiveRecordTrait.php#L207
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return;
}
if (method_exists($this, 'get' . ucfirst($name))) {
- throw new InvalidCallException('Setting read-only property: ' . static::class . '::' . $name);
+ throw new InvalidCallException('Setting read-only property: ' . static::class . $name);
}
throw new UnknownPropertyException('Setting unknown property: ' . static::class . '::' . $name);
}
|
Run infection.:
src/BaseActiveRecordTrait.php#L207
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
return;
}
if (method_exists($this, 'get' . ucfirst($name))) {
- throw new InvalidCallException('Setting read-only property: ' . static::class . '::' . $name);
+ throw new InvalidCallException('Setting read-only property: ' . static::class . $name . '::');
}
throw new UnknownPropertyException('Setting unknown property: ' . static::class . '::' . $name);
}
|
Run infection.:
src/BaseActiveRecordTrait.php#L207
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return;
}
if (method_exists($this, 'get' . ucfirst($name))) {
- throw new InvalidCallException('Setting read-only property: ' . static::class . '::' . $name);
+ throw new InvalidCallException('Setting read-only property: ' . static::class . '::');
}
throw new UnknownPropertyException('Setting unknown property: ' . static::class . '::' . $name);
}
|
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#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
{
|
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