Bump phpstan/phpstan from 1.12.13 to 2.0.4 in /tools/phpstan #1356
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Mutation Tests:
src/Exception/PatternException.php#L11
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
public static function syntaxError(string $message, ?Exception $previous = null) : self
{
- return new self('[Syntax Error] ' . $message, 0, $previous);
+ return new self('[Syntax Error] ' . $message, -1, $previous);
}
}
|
Mutation Tests:
src/Exception/PatternException.php#L11
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
public static function syntaxError(string $message, ?Exception $previous = null) : self
{
- return new self('[Syntax Error] ' . $message, 0, $previous);
+ return new self('[Syntax Error] ' . $message, 1, $previous);
}
}
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+ parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), -1, null);
}
public function getType() : string
{
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+ parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 1, null);
}
public function getType() : string
{
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+
}
public function getType() : string
{
|
Mutation Tests:
src/Lexer.php#L165
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
}
return $type;
}
- protected function isStringToken(string $value) : bool
+ private function isStringToken(string $value) : bool
{
return \in_array(\substr($value, 0, 1), ['"', "'"], true);
}
|
Mutation Tests:
src/Lexer.php#L167
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
protected function isStringToken(string $value) : bool
{
- return \in_array(\substr($value, 0, 1), ['"', "'"], true);
+ return \in_array(\substr($value, -1, 1), ['"', "'"], true);
}
protected function isBooleanToken(string $value) : bool
{
|
Mutation Tests:
src/Lexer.php#L170
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \in_array(\substr($value, 0, 1), ['"', "'"], true);
}
- protected function isBooleanToken(string $value) : bool
+ private function isBooleanToken(string $value) : bool
{
return \in_array(\strtolower($value), ['true', 'false'], true);
}
|
Mutation Tests:
src/Lexer.php#L175
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \in_array(\strtolower($value), ['true', 'false'], true);
}
- protected function isNullToken(string $value) : bool
+ private function isNullToken(string $value) : bool
{
return \strtolower($value) === 'null';
}
|
Mutation Tests:
src/Lexer.php#L180
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \strtolower($value) === 'null';
}
- protected function extractStringValue(string $value) : string
+ private function extractStringValue(string $value) : string
{
return \trim(\trim($value, "'"), '"');
}
|
Loading