composer(deps-dev): Bump vimeo/psalm from 5.12.0 to 5.13.0 #1258
integrate.yaml
on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
1 error and 10 warnings
Mutation Tests (8.0, locked)
Process completed with exit code 1.
|
Mutation Tests (8.0, locked):
src/Constructs.php#L53
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
--- Original
+++ New
@@ @@
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
$classyTokens = [\T_CLASS, \T_INTERFACE, \T_TRAIT];
// https://wiki.php.net/rfc/enumerations
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID > 80100 && \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Mutation Tests (8.0, locked):
src/Constructs.php#L53
Escaped Mutant for Mutator "GreaterThanOrEqualToNegotiation":
--- Original
+++ New
@@ @@
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
$classyTokens = [\T_CLASS, \T_INTERFACE, \T_TRAIT];
// https://wiki.php.net/rfc/enumerations
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID < 80100 && \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Mutation Tests (8.0, locked):
src/Constructs.php#L53
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
$classyTokens = [\T_CLASS, \T_INTERFACE, \T_TRAIT];
// https://wiki.php.net/rfc/enumerations
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID >= 80100 || \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Mutation Tests (8.0, locked):
src/Constructs.php#L70
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
if (\is_array($token) && \T_NAMESPACE === $token[0]) {
$namespaceSegments = [];
// collect namespace segments
- for ($index = self::significantAfter($index, $sequence, $count); $index < $count; ++$index) {
+ for ($index = self::significantAfter($index, $sequence, $count); $index <= $count; ++$index) {
$token = $sequence[$index];
if (\is_array($token) && !\in_array($token[0], $namespaceSegmentOrNamespaceTokens, true)) {
continue;
|
Mutation Tests (8.0, locked):
src/Constructs.php#L74
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
for ($index = self::significantAfter($index, $sequence, $count); $index < $count; ++$index) {
$token = $sequence[$index];
if (\is_array($token) && !\in_array($token[0], $namespaceSegmentOrNamespaceTokens, true)) {
- continue;
+ break;
}
$content = self::content($token);
if (\in_array($content, ['{', ';'], true)) {
|
Mutation Tests (8.0, locked):
src/Constructs.php#L102
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$token = $sequence[$current];
// if significant token before T_CLASS is T_NEW, it's an instantiation of an anonymous class
if (\is_array($token) && \T_NEW === $token[0]) {
- continue;
+ break;
}
}
$index = self::significantAfter($index, $sequence, $count);
|
Mutation Tests (8.0, locked):
src/Constructs.php#L150
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
continue;
}
if ($fileInfo->getBasename('.php') === $fileInfo->getBasename()) {
- continue;
+ break;
}
/** @var string $fileName */
$fileName = $fileInfo->getRealPath();
|
Mutation Tests (8.0, locked):
src/Constructs.php#L169
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
throw Exception\ParseError::fromFileNameAndParseError($fileName, $exception);
}
if (0 === \count($constructsFromFile)) {
- continue;
+ break;
}
foreach ($constructsFromFile as $construct) {
$name = $construct->name();
|
Mutation Tests (8.0, locked):
src/Constructs.php#L183
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$constructs[$name] = $construct->definedIn($fileName);
}
}
- \usort($constructs, static function (Construct $a, Construct $b) : int {
- return \strcmp($a->name(), $b->name());
- });
+
$constructsWithMultipleDefinitions = \array_filter($constructs, static function (Construct $construct) : bool {
return 1 < \count($construct->fileNames());
});
|
Mutation Tests (8.0, locked):
src/Constructs.php#L198
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
if (0 < \count($constructsWithMultipleDefinitions)) {
throw Exception\MultipleDefinitionsFound::fromConstructs($constructsWithMultipleDefinitions);
}
- return \array_values($constructs);
+ return $constructs;
}
/**
* Returns the index of the significant token after the index.
|