Upgrade package #5
Annotations
10 errors
MixedArgumentTypeCoercion:
src/Collection/InMemoryCollection.php#L78
src/Collection/InMemoryCollection.php:78:23: MixedArgumentTypeCoercion: Argument 2 of usort expects callable(mixed, mixed):int, but parent type callable provided (see https://psalm.dev/194)
|
MixedArrayOffset:
src/MultipleThrottler.php#L27
src/MultipleThrottler.php:27:20: MixedArrayOffset: Cannot access value on variable $this->throttlers using mixed offset (see https://psalm.dev/031)
|
MixedArgument:
src/MultipleThrottler.php#L28
src/MultipleThrottler.php:28:81: MixedArgument: Argument 2 of sprintf cannot be mixed, expecting float|int|string (see https://psalm.dev/030)
|
MixedArgument:
src/MultipleThrottler.php#L31
src/MultipleThrottler.php:31:27: MixedArgument: Argument 1 of class_exists cannot be mixed, expecting string (see https://psalm.dev/030)
|
MixedAssignment:
src/RoundRobinThrottler.php#L24
src/RoundRobinThrottler.php:24:9: MixedAssignment: Unable to determine the type that $counter is being assigned to (see https://psalm.dev/032)
|
MixedArgument:
src/RoundRobinThrottler.php#L25
src/RoundRobinThrottler.php:25:37: MixedArgument: Argument 1 of Orangesoft\Throttler\Counter\CounterInterface::next cannot be mixed|string, expecting string (see https://psalm.dev/030)
|
MixedAssignment:
src/SmoothWeightedRoundRobinThrottler.php#L27
src/SmoothWeightedRoundRobinThrottler.php:27:9: MixedAssignment: Unable to determine the type that $counter is being assigned to (see https://psalm.dev/032)
|
MixedArrayTypeCoercion:
src/SmoothWeightedRoundRobinThrottler.php#L29
src/SmoothWeightedRoundRobinThrottler.php:29:20: MixedArrayTypeCoercion: Coercion from array offset type 'mixed|string' to the expected type 'string' (see https://psalm.dev/195)
|
MixedArrayOffset:
src/SmoothWeightedRoundRobinThrottler.php#L29
src/SmoothWeightedRoundRobinThrottler.php:29:20: MixedArrayOffset: Cannot access value on variable $this->weights using mixed offset (see https://psalm.dev/031)
|
MixedArrayTypeCoercion:
src/SmoothWeightedRoundRobinThrottler.php#L29
src/SmoothWeightedRoundRobinThrottler.php:29:56: MixedArrayTypeCoercion: Coercion from array offset type 'mixed|string' to the expected type 'string' (see https://psalm.dev/195)
|