Skip to content

Merge pull request #899 from ergebnis/dependabot/github_actions/codec… #1744

Merge pull request #899 from ergebnis/dependabot/github_actions/codec…

Merge pull request #899 from ergebnis/dependabot/github_actions/codec… #1744

Triggered via push May 1, 2024 15:13
Status Success
Total duration 49s
Artifacts

integrate.yaml

on: push
Matrix: Backward-Compatibility Analysis
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Tests (8.1, locked): src/Constructs.php#L61
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.1, locked): src/Constructs.php#L65
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.1, locked): src/Constructs.php#L93
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.1, locked): src/Constructs.php#L160
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.1, locked): src/Constructs.php#L189
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.
Mutation Tests (8.1, locked): src/Constructs.php#L202
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ */ private static function significantAfter(int $index, array $sequence, int $count) : int { - for ($current = $index + 1; $current < $count; ++$current) { + for ($current = $index + 2; $current < $count; ++$current) { $token = $sequence[$current]; if (\is_array($token) && \in_array($token[0], [\T_COMMENT, \T_DOC_COMMENT, \T_WHITESPACE], true)) { continue;
Mutation Tests (8.1, locked): src/Constructs.php#L202
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ */ private static function significantAfter(int $index, array $sequence, int $count) : int { - for ($current = $index + 1; $current < $count; ++$current) { + for ($current = $index + 1; $current <= $count; ++$current) { $token = $sequence[$current]; if (\is_array($token) && \in_array($token[0], [\T_COMMENT, \T_DOC_COMMENT, \T_WHITESPACE], true)) { continue;
Mutation Tests (8.1, locked): src/Constructs.php#L224
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ */ private static function significantBefore(int $index, array $sequence) : int { - for ($current = $index - 1; -1 < $current; --$current) { + for ($current = $index - 2; -1 < $current; --$current) { $token = $sequence[$current]; if (\is_array($token) && \in_array($token[0], [\T_COMMENT, \T_DOC_COMMENT, \T_WHITESPACE], true)) { continue;
Mutation Tests (8.1, locked): src/Constructs.php#L224
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ */ private static function significantBefore(int $index, array $sequence) : int { - for ($current = $index - 1; -1 < $current; --$current) { + for ($current = $index - 1; -1 <= $current; --$current) { $token = $sequence[$current]; if (\is_array($token) && \in_array($token[0], [\T_COMMENT, \T_DOC_COMMENT, \T_WHITESPACE], true)) { continue;
Dependency Analysis (8.1, locked)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3.3.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.