Implement limits API endpoints #142
Annotations
4 errors and 10 warnings
ArgumentTypeCoercion:
app/src/Repository/ChargeRepository.php#L171
app/src/Repository/ChargeRepository.php:171:35: ArgumentTypeCoercion: Argument 1 of Cycle\Database\Query\SelectQuery::sum expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
InvalidArgument:
app/src/Service/Limit/LimitService.php#L33
app/src/Service/Limit/LimitService.php:33:17: InvalidArgument: Argument 2 of App\Repository\ChargeRepository::totalByWalletPKAndTagPKs expects array<int, int>, but array<int, int|null> provided (see https://psalm.dev/004)
|
Static Analysis
Process completed with exit code 2.
|
Tests
Process completed with exit code 2.
|
DeprecatedInterface:
app/src/Auth/Jwt/RefreshTokenStorage.php#L12
app/src/Auth/Jwt/RefreshTokenStorage.php:12:7: DeprecatedInterface: Spiral\Core\Container\SingletonInterface is marked deprecated (see https://psalm.dev/152)
|
RiskyTruthyFalsyComparison:
app/src/Auth/Jwt/Token.php#L70
app/src/Auth/Jwt/Token.php:70:13: RiskyTruthyFalsyComparison: Operand of type bool|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
DeprecatedInterface:
app/src/Auth/Jwt/TokenStorage.php#L15
app/src/Auth/Jwt/TokenStorage.php:15:7: DeprecatedInterface: Spiral\Core\Container\SingletonInterface is marked deprecated (see https://psalm.dev/152)
|
DeprecatedConstant:
app/src/Bootloader/LoggingBootloader.php#L40
app/src/Bootloader/LoggingBootloader.php:40:24: DeprecatedConstant: Constant Monolog\Logger::ERROR is deprecated (see https://psalm.dev/170)
|
RiskyTruthyFalsyComparison:
app/src/Bootloader/RedisBootloader.php#L51
app/src/Bootloader/RedisBootloader.php:51:13: RiskyTruthyFalsyComparison: Operand of type Redis|false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RiskyTruthyFalsyComparison:
app/src/Repository/ChargeRepository.php#L131
app/src/Repository/ChargeRepository.php:131:15: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RiskyTruthyFalsyComparison:
app/src/Repository/ChargeRepository.php#L153
app/src/Repository/ChargeRepository.php:153:15: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RiskyTruthyFalsyComparison:
app/src/Repository/ChargeRepository.php#L186
app/src/Repository/ChargeRepository.php:186:15: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RiskyTruthyFalsyComparison:
app/src/Repository/ChargeRepository.php#L208
app/src/Repository/ChargeRepository.php:208:15: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
DeprecatedInterface:
app/src/Security/EncryptedEntityChecker.php#L11
app/src/Security/EncryptedEntityChecker.php:11:7: DeprecatedInterface: Spiral\Core\Container\SingletonInterface is marked deprecated (see https://psalm.dev/152)
|