Skip to content

Improve PerfectHasher and its coverage #14

Improve PerfectHasher and its coverage

Improve PerfectHasher and its coverage #14

Triggered via push September 4, 2024 09:37
Status Failure
Total duration 1m 22s
Artifacts

check.yml

on: push
Matrix: psalm
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 2 warnings
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L80
tests/Internal/PerfectHasherTest.php:80:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:80:2987:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L97
tests/Internal/PerfectHasherTest.php:97:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:97:3506:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
psalm (lowest)
Process completed with exit code 2.
psalm (highest)
The job was canceled because "lowest" failed.
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L80
tests/Internal/PerfectHasherTest.php:80:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:80:2987:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L97
tests/Internal/PerfectHasherTest.php:97:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:97:3506:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
psalm (highest)
Process completed with exit code 2.
psalm (locked)
The job was canceled because "lowest" failed.
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L80
tests/Internal/PerfectHasherTest.php:80:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:80:2987:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L83
tests/Internal/PerfectHasherTest.php:83:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
MixedInferredReturnType: tests/Internal/PerfectHasherTest.php#L97
tests/Internal/PerfectHasherTest.php:97:81: MixedInferredReturnType: Could not verify return type 'int' for /home/runner/work/data-structures/data-structures/tests/internal/perfecthashertest.php:97:3506:-:closure (see https://psalm.dev/047)
MixedOperand: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedOperand: Left operand cannot be mixed (see https://psalm.dev/059)
MixedReturnStatement: tests/Internal/PerfectHasherTest.php#L100
tests/Internal/PerfectHasherTest.php:100:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
psalm (locked)
Process completed with exit code 2.
infection: src/Internal/ArrayMap.php#L48
Escaped Mutant for Mutator "InstanceOf_": @@ @@ } protected function doPutAll(iterable $values): void { - if ($values instanceof self) { + if (false) { $this->kvPairs = array_replace($this->kvPairs, $values->kvPairs); return; }
infection: src/MutableMap.php#L189
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @param iterable<K, V> $values */ - protected function doPutAll(iterable $values): void + private function doPutAll(iterable $values): void { foreach ($values as $key => $value) { $this->put($key, $value);