Merge pull request #409 from graphpql/dependabot/composer/phpstan/php… #1257
php.yml
on: push
tests
16s
phpstan
21s
codestyle
0s
mutation
1m 54s
Matrix: tests-matrix
Annotations
9 errors and 17 warnings
phpstan:
src/Normalizer/Normalizer.php#L137
Match expression does not handle remaining value: string
|
phpstan:
src/Resolver/Resolver.php#L22
Match expression does not handle remaining value: string
|
phpstan:
src/Typesystem/EnumType.php#L99
Call to function assert() with true will always evaluate to true.
|
phpstan:
src/Typesystem/EnumType.php#L99
Instanceof between Graphpinator\Typesystem\Attribute\Description and Graphpinator\Typesystem\Attribute\Description will always evaluate to true.
|
phpstan:
src/Typesystem/Utils/THasDescription.php (in context of class Graphpinator/Typesystem/Contract/NamedType)#L18
Call to function assert() with true will always evaluate to true.
|
phpstan:
src/Typesystem/Utils/THasDescription.php (in context of class Graphpinator/Typesystem/Contract/NamedType)#L18
Instanceof between Graphpinator\Typesystem\Attribute\Description and Graphpinator\Typesystem\Attribute\Description will always evaluate to true.
|
phpstan:
src/Typesystem/Utils/THasDescription.php (in context of class Graphpinator/Typesystem/Directive)#L18
Call to function assert() with true will always evaluate to true.
|
phpstan:
src/Typesystem/Utils/THasDescription.php (in context of class Graphpinator/Typesystem/Directive)#L18
Instanceof between Graphpinator\Typesystem\Attribute\Description and Graphpinator\Typesystem\Attribute\Description will always evaluate to true.
|
phpstan
Process completed with exit code 1.
|
tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
tests-matrix (8.2, 1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
tests-matrix (8.3, 1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
tests-matrix (8.2, 0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
tests-matrix (8.3, 0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
mutation
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
mutation:
src/Exception/Value/InvalidValue.php#L22
Escaped Mutant for Mutator "Identical":
@@ @@
}
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:
src/Exception/Value/InvalidValue.php#L22
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
@@ @@
}
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:
src/Exception/Value/InvalidValue.php#L30
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
if (\is_array($rawValue)) {
return 'list';
}
- if ($rawValue instanceof \stdClass) {
+ if (true) {
return 'object';
}
return $rawValue::class;
}
}
|
mutation:
src/Exception/Value/InvalidValue.php#L30
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
if (\is_array($rawValue)) {
return 'list';
}
- if ($rawValue instanceof \stdClass) {
+ if (false) {
return 'object';
}
return $rawValue::class;
}
}
|
mutation:
src/Graphpinator.php#L65
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof Request) {
+ if (!true) {
break;
}
}
|
mutation:
src/Graphpinator.php#L65
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof Request) {
+ if (!false) {
break;
}
}
|
mutation:
src/Graphpinator.php#L65
Escaped Mutant for Mutator "LogicalNot":
@@ @@
$this->logger->debug($request->getQuery());
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
- if (!$result instanceof Request) {
+ if ($result instanceof Request) {
break;
}
}
|
mutation:
src/Graphpinator.php#L66
Escaped Mutant for Mutator "Break_":
@@ @@
foreach ($this->modules as $module) {
$result = $module->processRequest($request);
if (!$result instanceof Request) {
- break;
+ continue;
}
}
if ($result instanceof Request) {
|
mutation:
src/Graphpinator.php#L76
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$result = $this->parser->parse(new StringSource($request->getQuery()));
foreach ($this->modules as $module) {
$result = $module->processParsed($result);
- if (!$result instanceof ParsedRequest) {
+ if (!true) {
break;
}
}
|
mutation:
src/Graphpinator.php#L76
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$result = $this->parser->parse(new StringSource($request->getQuery()));
foreach ($this->modules as $module) {
$result = $module->processParsed($result);
- if (!$result instanceof ParsedRequest) {
+ if (!false) {
break;
}
}
|