Improve PerfectHasher and its coverage #14
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);
|