Remaining phpstan false-positives #225
Annotations
7 warnings
|
mutation:
src/Value/ObjectVal.php#L25
Escaped Mutant for Mutator "CastArray":
@@ @@
public function getRawValue(): \stdClass
{
$return = new \stdClass();
- foreach ((array) $this->value as $key => $value) {
+ foreach ($this->value as $key => $value) {
\assert($value instanceof Value);
$return->{$key} = $value->getRawValue();
}
|
|
mutation:
src/Parser.php#L260
Escaped Mutant for Mutator "DoWhile":
@@ @@
default:
throw new ExpectedSelectionSetBody($this->tokenizer->getNext()->getLocation(), $this->tokenizer->getCurrent()->getType());
}
- } while ($this->tokenizer->peekNext()->getType() !== TokenType::CUR_C);
+ } while (false);
$this->tokenizer->getNext();
return new FieldSet($fields, new FragmentSpreadSet($fragments));
}
|
|
mutation:
src/Parser.php#L80
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
$this->tokenizer = new TokenContainer($source);
if ($this->tokenizer->isEmpty()) {
- throw new EmptyRequest(new Location(1, 1));
+ throw new EmptyRequest(new Location(1, 2));
}
$fragments = [];
$locations = [];
|
|
mutation:
src/Parser.php#L80
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
$this->tokenizer = new TokenContainer($source);
if ($this->tokenizer->isEmpty()) {
- throw new EmptyRequest(new Location(1, 1));
+ throw new EmptyRequest(new Location(1, 0));
}
$fragments = [];
$locations = [];
|
|
mutation:
src/Parser.php#L80
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
$this->tokenizer = new TokenContainer($source);
if ($this->tokenizer->isEmpty()) {
- throw new EmptyRequest(new Location(1, 1));
+ throw new EmptyRequest(new Location(2, 1));
}
$fragments = [];
$locations = [];
|
|
mutation:
src/Parser.php#L80
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
$this->tokenizer = new TokenContainer($source);
if ($this->tokenizer->isEmpty()) {
- throw new EmptyRequest(new Location(1, 1));
+ throw new EmptyRequest(new Location(0, 1));
}
$fragments = [];
$locations = [];
|
|
mutation:
src/Exception/ParserError.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __construct(Location $location, array $messageArgs = [])
{
parent::__construct($messageArgs);
- $this->setLocation($location);
+
}
#[\Override]
final public function isOutputable(): bool
|