Skip to content

Fix Frontend psalm issues #77

Fix Frontend psalm issues

Fix Frontend psalm issues #77

Triggered via push December 16, 2023 20:42
Status Success
Total duration 29s
Artifacts

psalm.yml

on: push
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\Frontend\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\Frontend\Http\RequestHandler::__construct is internal to Buggregator\Trap * Read about Sec-WebSocket-Extensions: but called from Buggregator\Trap\Application::configureFrontend (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)
InvalidAttribute: src/Handler/Router/Attribute/Route.php#L12
src/Handler/Router/Attribute/Route.php:12:3: InvalidAttribute: Abstract classes cannot act as attribute classes (see https://psalm.dev/242)
MixedAssignment: src/Handler/Router/Router.php#L99
src/Handler/Router/Router.php:99:17: MixedAssignment: Unable to determine the type that $args is being assigned to (see https://psalm.dev/032)
InvalidArgument: src/Handler/Router/Router.php#L116
src/Handler/Router/Router.php:116:83: InvalidArgument: Argument 2 of implode expects array<array-key, null|object{__tostring()}|scalar>, but non-empty-list<Buggregator\Trap\Handler\Router\Attribute\AssertRoute|non-empty-string> provided (see https://psalm.dev/004)
UndefinedPropertyFetch: src/Handler/Router/Router.php#L219
src/Handler/Router/Router.php:219:67: UndefinedPropertyFetch: Instance property Buggregator\Trap\Handler\Router\Attribute\Route::$path is not defined (see https://psalm.dev/039)
ArgumentTypeCoercion: src/Handler/Router/Router.php#L220
src/Handler/Router/Router.php:220:61: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
UndefinedPropertyFetch: src/Handler/Router/Router.php#L220
src/Handler/Router/Router.php:220:69: UndefinedPropertyFetch: Instance property Buggregator\Trap\Handler\Router\Attribute\Route::$regexp is not defined (see https://psalm.dev/039)
MixedAssignment: src/Handler/Router/Router.php#L263
src/Handler/Router/Router.php:263:21: MixedAssignment: Unable to determine the type of this assignment (see https://psalm.dev/032)
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/