Merge pull request #383 from graphpql/dependabot/composer/phpstan/php… #1195
Annotations
12 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Mutation tests:
src/Exception/Value/InvalidValue.php#L18
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
}
private function printValue(mixed $rawValue): string
{
- if ($rawValue === null || \is_scalar($rawValue)) {
+ if ($rawValue !== null || \is_scalar($rawValue)) {
return \json_encode($rawValue, \JSON_THROW_ON_ERROR);
}
if (\is_array($rawValue)) {
|
Mutation tests:
src/Exception/Value/InvalidValue.php#L18
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- Original
+++ New
@@ @@
}
private function printValue(mixed $rawValue): string
{
- if ($rawValue === null || \is_scalar($rawValue)) {
+ if (!($rawValue === null) || !\is_scalar($rawValue)) {
return \json_encode($rawValue, \JSON_THROW_ON_ERROR);
}
if (\is_array($rawValue)) {
|
Mutation tests:
src/Exception/Value/InvalidValue.php#L26
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (\is_array($rawValue)) {
return 'list';
}
- if ($rawValue instanceof \stdClass) {
+ if (true) {
return 'object';
}
return $rawValue::class;
}
}
|
Mutation tests:
src/Exception/Value/InvalidValue.php#L26
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (\is_array($rawValue)) {
return 'list';
}
- if ($rawValue instanceof \stdClass) {
+ if (false) {
return 'object';
}
return $rawValue::class;
}
}
|
Mutation tests:
src/Graphpinator.php#L46
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof \Graphpinator\Request\Request) {
+ if (!true) {
break;
}
}
|
Mutation tests:
src/Graphpinator.php#L46
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof \Graphpinator\Request\Request) {
+ if (!false) {
break;
}
}
|
Mutation tests:
src/Graphpinator.php#L46
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof \Graphpinator\Request\Request) {
+ if ($result instanceof \Graphpinator\Request\Request) {
break;
}
}
|
Mutation tests:
src/Graphpinator.php#L47
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
if (!$result instanceof \Graphpinator\Request\Request) {
- break;
+ continue;
}
}
if ($result instanceof \Graphpinator\Request\Request) {
|
Mutation tests:
src/Graphpinator.php#L57
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$result = $this->parser->parse(new \Graphpinator\Source\StringSource($request->getQuery()));
foreach ($this->modules as $module) {
$result = $module->processParsed($result);
- if (!$result instanceof \Graphpinator\Parser\ParsedRequest) {
+ if (!true) {
break;
}
}
|
Mutation tests:
src/Graphpinator.php#L57
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$result = $this->parser->parse(new \Graphpinator\Source\StringSource($request->getQuery()));
foreach ($this->modules as $module) {
$result = $module->processParsed($result);
- if (!$result instanceof \Graphpinator\Parser\ParsedRequest) {
+ if (!false) {
break;
}
}
|
Loading