Skip to content

Improve typing

Improve typing #22

Triggered via push February 14, 2025 23:53
Status Failure
Total duration 42s
Artifacts

quality.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PossiblyUnusedMethod: src/App.php#L63
src/App.php:63:21: PossiblyUnusedMethod: Cannot find any calls to method Sajya\Server\App::terminate (see https://psalm.dev/087)
PossiblyNullArgument: src/App.php#L132
src/App.php:132:34: PossiblyNullArgument: Argument 1 of Illuminate\Support\Str::beforeLast cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyNullArgument: src/App.php#L133
src/App.php:133:34: PossiblyNullArgument: Argument 1 of Illuminate\Support\Str::afterLast cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/App.php#L152
src/App.php:152:37: ArgumentTypeCoercion: Argument 1 of ReflectionClass::__construct expects class-string|object|trait-string, but parent type string provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/App.php#L165
src/App.php:165:30: ArgumentTypeCoercion: Argument 1 of method_exists expects class-string|object, but parent type string provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/App.php#L165
src/App.php:165:76: ArgumentTypeCoercion: Argument 1 of ReflectionMethod::__construct expects class-string|object, but parent type string provided (see https://psalm.dev/193)
PossiblyUnusedMethod: src/Attributes/RpcMethod.php#L12
src/Attributes/RpcMethod.php:12:21: PossiblyUnusedMethod: Cannot find any calls to method Sajya\Server\Attributes\RpcMethod::__construct (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Binding.php#L52
src/Binding.php:52:21: PossiblyUnusedMethod: Cannot find any calls to method Sajya\Server\Binding::model (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Binding.php#L82
src/Binding.php:82:21: PossiblyUnusedMethod: Cannot find any calls to method Sajya\Server\Binding::bindResolve (see https://psalm.dev/087)
ArgumentTypeCoercion: src/Binding.php#L84
src/Binding.php:84:38: ArgumentTypeCoercion: Argument 1 of ReflectionClass::__construct expects class-string|object|trait-string, but parent type string provided (see https://psalm.dev/193)