add rate limit implementation to stop over-zealous bots #315
Annotations
2 errors and 7 warnings
|
create-release
Process completed with exit code 2.
|
|
PossiblyFalseReference:
codepoints.net/lib/Router/RateLimiter.php#L52
codepoints.net/lib/Router/RateLimiter.php:52:28: PossiblyFalseReference: Cannot call method execute on possibly false value (see https://psalm.dev/105)
|
|
MissingReturnType:
codepoints.net/lib/Router/RateLimiter.php#L60
codepoints.net/lib/Router/RateLimiter.php:60:28: MissingReturnType: Method Codepoints\Router\RateLimiter::clearStale does not have a return type, expecting void (see https://psalm.dev/050)
|
|
MissingParamType:
codepoints.net/lib/Router/RateLimiter.php#L50
codepoints.net/lib/Router/RateLimiter.php:50:40: MissingParamType: Parameter $params has no provided type (see https://psalm.dev/154)
|
|
MissingParamType:
codepoints.net/lib/Router/RateLimiter.php#L50
codepoints.net/lib/Router/RateLimiter.php:50:29: MissingParamType: Parameter $query has no provided type (see https://psalm.dev/154)
|
|
MissingReturnType:
codepoints.net/lib/Router/RateLimiter.php#L50
codepoints.net/lib/Router/RateLimiter.php:50:22: MissingReturnType: Method Codepoints\Router\RateLimiter::dbExec does not have a return type, expecting bool (see https://psalm.dev/050)
|
|
RiskyTruthyFalsyComparison:
codepoints.net/lib/Router/RateLimiter.php#L32
codepoints.net/lib/Router/RateLimiter.php:32:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|false contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
|
MissingReturnType:
codepoints.net/lib/Router/RateLimiter.php#L28
codepoints.net/lib/Router/RateLimiter.php:28:22: MissingReturnType: Method Codepoints\Router\RateLimiter::doLimit does not have a return type, expecting void (see https://psalm.dev/050)
|
|
RiskyTruthyFalsyComparison:
codepoints.net/lib/Router/RateLimiter.php#L22
codepoints.net/lib/Router/RateLimiter.php:22:13: RiskyTruthyFalsyComparison: Operand of type non-empty-string|null contains type non-empty-string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|