Bump phpstan/phpstan from 1.12.13 to 2.0.4 in /tools/phpstan #1356
test-suite.yml
on: pull_request
Static Analyze
2m 48s
Mutation Tests
7m 25s
Matrix: Tests
Annotations
10 errors and 24 warnings
Static Analyze:
src/Matcher/ArrayMatcher.php#L226
Dead catch - Coduo\PHPMatcher\Exception\Exception is never thrown in the try block.
|
Static Analyze:
src/Matcher/Pattern/Expander/DateTimeComparisonTrait.php (in context of class Coduo/PHPMatcher/Matcher/Pattern/Expander/After)#L20
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/Matcher/Pattern/Expander/DateTimeComparisonTrait.php (in context of class Coduo/PHPMatcher/Matcher/Pattern/Expander/Before)#L20
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/Matcher/Pattern/Expander/EndsWith.php#L27
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/Matcher/Pattern/Expander/MatchRegex.php#L25
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/Matcher/Pattern/Expander/MatchRegex.php#L29
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/Matcher/Pattern/Expander/StartsWith.php#L27
Call to function is_string() with string will always evaluate to true.
|
Static Analyze:
src/PHPUnit/PHPMatcherAssertions.php#L10
Trait Coduo\PHPMatcher\PHPUnit\PHPMatcherAssertions is used zero times and is not analysed.
|
Static Analyze:
src/Parser.php#L78
Instanceof between Coduo\PHPMatcher\AST\Pattern and Coduo\PHPMatcher\AST\Pattern will always evaluate to true.
|
Static Analyze
Process completed with exit code 1.
|
Tests (locked, 8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (locked, 8.4, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (highest, 8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (lowest, 8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (locked, 8.1, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (highest, 8.4, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (lowest, 8.4, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (lowest, 8.1, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (locked, 8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (highest, 8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (lowest, 8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests (highest, 8.1, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Static Analyze
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Mutation Tests
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, "'"), '"');
}
|