Merge pull request #6 from ergebnis/dependabot/github_actions/stefanz… #29
Annotations
4 warnings
src/Arrays/SortAssociativeArrayByKeyRector.php#L74
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function refactor(Node $node) : ?Node
{
- if (!$node instanceof Node\Expr\Array_) {
+ if (!true) {
return null;
}
if ($this->isScopeInTest($node)) {
|
src/Arrays/SortAssociativeArrayByKeyRector.php#L84
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
/** @var array<int, Node\Expr\ArrayItem> $items */
$items = \array_filter($node->items, static function ($item) : bool {
- if (!$item instanceof Node\Expr\ArrayItem) {
+ if (!true) {
return false;
}
if (!$item->key instanceof Node\Scalar\String_) {
|
src/Arrays/SortAssociativeArrayByKeyRector.php#L100
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
return null;
}
\usort($items, static function (Node\Expr\ArrayItem $a, Node\Expr\ArrayItem $b) : int {
- if (!$a->key instanceof Node\Scalar\String_) {
+ if (!true) {
throw new \RuntimeException('This should not happen.');
}
if (!$b->key instanceof Node\Scalar\String_) {
|
src/Arrays/SortAssociativeArrayByKeyRector.php#L104
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (!$a->key instanceof Node\Scalar\String_) {
throw new \RuntimeException('This should not happen.');
}
- if (!$b->key instanceof Node\Scalar\String_) {
+ if (!true) {
throw new \RuntimeException('This should not happen.');
}
return \strcmp($a->key->value, $b->key->value);
|
The logs for this run have expired and are no longer available.
Loading