Skip to content

style: enforce a stricter PHP-CS-Fixer configuration #244

style: enforce a stricter PHP-CS-Fixer configuration

style: enforce a stricter PHP-CS-Fixer configuration #244

Triggered via pull request May 10, 2024 00:49
Status Success
Total duration 23s
Artifacts

psalm.yml

on: pull_request
Matrix: psalm
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
RiskyTruthyFalsyComparison: src/Client/TrapHandle/Dumper.php#L35
src/Client/TrapHandle/Dumper.php:35:67: RiskyTruthyFalsyComparison: Operand of type int|null|string contains types int|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
InvalidArgument: src/Client/TrapHandle/Dumper.php#L59
src/Client/TrapHandle/Dumper.php:59:29: InvalidArgument: Argument 1 of Symfony\Component\VarDumper\Cloner\VarCloner::addCasters expects array<array-key, callable>, but array{Closure: string} provided (see https://psalm.dev/004)
InvalidArgument: src/Client/TrapHandle/Dumper.php#L87
src/Client/TrapHandle/Dumper.php:87:29: InvalidArgument: Argument 1 of Symfony\Component\VarDumper\Cloner\VarCloner::addCasters expects array<array-key, callable>, but array{Closure: string} provided (see https://psalm.dev/004)
MixedAssignment: src/Handler/Http/Handler/Fallback.php#L46
src/Handler/Http/Handler/Fallback.php:46:9: MixedAssignment: Unable to determine the type that $time is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Handler/Http/Handler/Fallback.php#L53
src/Handler/Http/Handler/Fallback.php:53:17: MixedAssignment: Unable to determine the type that $got is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Handler/Http/Handler/Websocket.php#L36
src/Handler/Http/Handler/Websocket.php:36:9: MixedAssignment: Unable to determine the type that $time is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Handler/Http/Middleware/SentryTrap.php#L70
src/Handler/Http/Middleware/SentryTrap.php:70:9: MixedAssignment: Unable to determine the type that $time is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Handler/Http/Middleware/SentryTrap/EnvelopeParser.php#L59
src/Handler/Http/Middleware/SentryTrap/EnvelopeParser.php:59:9: MixedAssignment: Unable to determine the type that $itemPayload is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Handler/Router/Router.php#L207
src/Handler/Router/Router.php:207:21: MixedAssignment: Unable to determine the type of this assignment (see https://psalm.dev/032)
LessSpecificReturnStatement: src/Proto/Frame/Binary.php#L33
src/Proto/Frame/Binary.php:33:16: LessSpecificReturnStatement: The type 'int' is more general than the declared return type 'int<0, max>' for Buggregator\Trap\Proto\Frame\Binary::getSize (see https://psalm.dev/129)
Psalm Validation (PHP 8.2, OS ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Psalm Validation (PHP 8.2, OS ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/