Skip to content

build

build #211

Triggered via schedule February 9, 2025 16:17
Status Failure
Total duration 49s
Artifacts 1

build.yml

on: schedule
Create code coverage
12s
Create code coverage
Code style (phpcs)
12s
Code style (phpcs)
Code style (php-cs-fixer)
8s
Code style (php-cs-fixer)
Code analysis (phpstan)
18s
Code analysis (phpstan)
Code analysis (psalm)
15s
Code analysis (psalm)
Matrix: tests
Upload code coverage
5s
Upload code coverage
Mutation testing (infection)
23s
Mutation testing (infection)
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 9 warnings
PossiblyUnusedMethod: src/Enum.php#L21
src/Enum.php:21:27: PossiblyUnusedMethod: Cannot find any calls to method Eclipxe\Enum\Enum::value (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Enum.php#L26
src/Enum.php:26:27: PossiblyUnusedMethod: Cannot find any calls to method Eclipxe\Enum\Enum::index (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Enum.php#L78
src/Enum.php:78:21: PossiblyUnusedMethod: Cannot find any calls to method Eclipxe\Enum\Enum::__call (see https://psalm.dev/087)
PossiblyUnusedParam: src/Enum.php#L78
src/Enum.php:78:48: PossiblyUnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/134)
PossiblyFalseArgument: src/Enum.php#L81
src/Enum.php:81:64: PossiblyFalseArgument: Argument 1 of Eclipxe\Enum\Internal\Entries::findEntryByName cannot be false, possibly string value expected (see https://psalm.dev/104)
PossiblyUnusedMethod: src/Enum.php#L93
src/Enum.php:93:28: PossiblyUnusedMethod: Cannot find any calls to method Eclipxe\Enum\Enum::__callStatic (see https://psalm.dev/087)
PossiblyUnusedParam: src/Enum.php#L93
src/Enum.php:93:61: PossiblyUnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/134)
PossiblyUnusedMethod: src/Enum.php#L108
src/Enum.php:108:34: PossiblyUnusedMethod: Cannot find any calls to method Eclipxe\Enum\Enum::toArray (see https://psalm.dev/087)
Code analysis (psalm)
Process completed with exit code 2.
Code analysis (phpstan): src/Enum.php#L182
PHPDoc tag @var with type Eclipxe\Enum\Enum is not subtype of native type non-empty-string.
Code analysis (phpstan): tests/Unit/Internal/EntriesPopulatorTest.php#L59
PHPDoc tag @var with type class-string is not subtype of native type 'foo'.
Code analysis (phpstan): tests/Unit/Internal/EntriesPopulatorTest.php#L73
PHPDoc tag @var with type class-string is not subtype of native type 'foo'.
Code analysis (phpstan)
Process completed with exit code 1.
Mutation testing (infection): src/Enum.php#L125
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ * * @return array<string, string> */ - protected static function overrideValues(): array + private static function overrideValues(): array { return []; }
Mutation testing (infection): src/Enum.php#L142
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ * * @return array<string, int> */ - protected static function overrideIndices(): array + private static function overrideIndices(): array { return []; }
Mutation testing (infection): src/Internal/Entries.php#L84
Escaped Mutant for Mutator "PublicVisibility": @@ @@ /** * @return array<int, int> */ - public function indices(): array + protected function indices(): array { $indices = []; foreach ($this->entries as $entry) {
Mutation testing (infection): src/Internal/Entries.php#L102
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ } return max($indices) + 1; } - protected function normalizeName(string $name): string + private function normalizeName(string $name): string { return strtolower($name); } }
Mutation testing (infection): src/Internal/EntriesPopulator.php#L52
Escaped Mutant for Mutator "PublicVisibility": @@ @@ $this->parentEntries = $parentEntries; } /** @return class-string */ - public function getClassName(): string + protected function getClassName(): string { return $this->className; }
Mutation testing (infection): src/Internal/EntriesPopulator.php#L84
Escaped Mutant for Mutator "PublicVisibility": @@ @@ $entries->put($name, new Entry($newValue, $newIndex)); } } - public function overrideValue(string $name): ?string + protected function overrideValue(string $name): ?string { $value = $this->overrideValues[$name] ?? null; if (!is_string($value)) {
Mutation testing (infection): src/Internal/EntriesPopulator.php#L93
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } return $value; } - public function overrideIndex(string $name): ?int + protected function overrideIndex(string $name): ?int { $index = $this->overrideIndices[$name] ?? null; if (!is_int($index)) {
Mutation testing (infection): src/Internal/EntriesPopulator.php#L106
Escaped Mutant for Mutator "PublicVisibility": @@ @@ * @return array<string> * @throws \ReflectionException */ - public function resolveNamesFromDocBlocks(): array + protected function resolveNamesFromDocBlocks(): array { // get comments $className = $this->getClassName();
Mutation testing (infection): src/Internal/Entry.php#L39
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } public function equals(self $other): bool { - return $this->equalValue($other->value()) && $this->equalIndex($other->index()); + return $this->equalValue($other->value()) || $this->equalIndex($other->index()); } public function equalValue(string $value): bool {

Artifacts

Produced during runtime
Name Size
code-coverage
31.3 KB