Skip to content

Websockets protocol #52

Websockets protocol

Websockets protocol #52

Triggered via pull request December 10, 2023 18:11
Status Success
Total duration 30s
Artifacts

psalm.yml

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

Annotations

10 errors and 1 warning
InternalClass: src/Application.php#L181
src/Application.php:181:18: InternalClass: Buggregator\Trap\Sender\Websocket\Http\RequestHandler is internal to Buggregator\Trap * Read about Sec-WebSocket-Extensions: but called from Buggregator\Trap\Application (see https://psalm.dev/174)
InternalMethod: src/Application.php#L181
src/Application.php:181:18: InternalMethod: Constructor Buggregator\Trap\Sender\Websocket\Http\RequestHandler::__construct is internal to Buggregator\Trap * Read about Sec-WebSocket-Extensions: but called from Buggregator\Trap\Application::configureUI (see https://psalm.dev/175)
ArgumentTypeCoercion: src/Application.php#L188
src/Application.php:188:58: ArgumentTypeCoercion: Argument 1 of Buggregator\Trap\Config\SocketServer::__construct expects int<1, 65535>, but parent type int provided (see https://psalm.dev/193)
InvalidDocblock: src/Sender/Websocket/FrameMapper.php#L14
src/Sender/Websocket/FrameMapper.php:14:1: InvalidDocblock: @template-implements must include the name of an implemented class, got IteratorAggregate<mixed, Buggregator\Trap\Proto\Frame> (see https://psalm.dev/008)
MissingReturnType: src/Sender/Websocket/Http/Events.php#L44
src/Sender/Websocket/Http/Events.php:44:22: MissingReturnType: Method Buggregator\Trap\Sender\Websocket\Http\Events::getEvents does not have a return type, expecting array{data: list<Buggregator\Trap\Sender\Websocket\Event>, meta: array{grid: array<never, never>}} (see https://psalm.dev/050)
InternalClass: src/Sender/Websocket/Http/RequestHandler.php#L51
src/Sender/Websocket/Http/RequestHandler.php:51:9: InternalClass: Buggregator\Trap\Handler\Http\Emitter is internal to Buggregator\Trap\Handler\Http but called from Buggregator\Trap\Sender\Websocket\Http\RequestHandler (see https://psalm.dev/174)
InternalMethod: src/Sender/Websocket/Http/RequestHandler.php#L51
src/Sender/Websocket/Http/RequestHandler.php:51:9: InternalMethod: The method Buggregator\Trap\Handler\Http\Emitter::emit is internal to Buggregator\Trap\Handler\Http but called from Buggregator\Trap\Sender\Websocket\Http\RequestHandler::handle (see https://psalm.dev/175)
ArgumentTypeCoercion: src/Sender/Websocket/Mapper/VarDump.php#L23
src/Sender/Websocket/Mapper/VarDump.php:23:19: ArgumentTypeCoercion: Argument 1 of Buggregator\Trap\Sender\Websocket\Event::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
MixedMethodCall: src/Sender/Websocket/Mapper/VarDump.php#L27
src/Sender/Websocket/Mapper/VarDump.php:27:44: MixedMethodCall: Cannot determine the type of $payload[0] when calling method getType (see https://psalm.dev/015)
MixedArgument: src/Sender/Websocket/Mapper/VarDump.php#L28
src/Sender/Websocket/Mapper/VarDump.php:28:58: MixedArgument: Argument 1 of Buggregator\Trap\Sender\Websocket\Mapper\VarDump::convertToPrimitive cannot be mixed, expecting Symfony\Component\VarDumper\Cloner\Data (see https://psalm.dev/030)
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/