Skip to content

New frontend

New frontend #213

Triggered via pull request July 6, 2024 20:20
@roxblnfkroxblnfk
synchronize #137
new-frontend
Status Failure
Total duration 40s
Artifacts

static-analysis.yml

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

Annotations

20 errors
MixedAssignment: src/Handler/Router/Router.php#L143
src/Handler/Router/Router.php:143:9: MixedAssignment: Unable to determine the type that $queryName is being assigned to (see https://psalm.dev/032)
UndefinedVariable: src/Handler/Router/Router.php#L143
src/Handler/Router/Router.php:143:22: UndefinedVariable: Cannot find referenced variable $queryParam (see https://psalm.dev/024)
MixedPropertyFetch: src/Handler/Router/Router.php#L143
src/Handler/Router/Router.php:143:22: MixedPropertyFetch: Cannot fetch property on mixed var $queryParam (see https://psalm.dev/034)
MixedArrayTypeCoercion: src/Handler/Router/Router.php#L144
src/Handler/Router/Router.php:144:20: MixedArrayTypeCoercion: Coercion from array offset type 'mixed|non-empty-string' to the expected type 'array-key' (see https://psalm.dev/195)
MixedArrayOffset: src/Handler/Router/Router.php#L144
src/Handler/Router/Router.php:144:20: MixedArrayOffset: Cannot access value on variable $params using mixed offset (see https://psalm.dev/031)
MixedArgument: src/Handler/Router/Router.php#L147
src/Handler/Router/Router.php:147:17: MixedArgument: Argument 2 of sprintf cannot be mixed|non-empty-string, expecting float|int|object{__tostring()}|string (see https://psalm.dev/030)
MixedAssignment: src/Handler/Router/Router.php#L153
src/Handler/Router/Router.php:153:9: MixedAssignment: Unable to determine the type that $value is being assigned to (see https://psalm.dev/032)
DocblockTypeContradiction: src/Handler/Router/Router.php#L159
src/Handler/Router/Router.php:159:34: DocblockTypeContradiction: ReflectionNamedType|ReflectionType does not contain null (see https://psalm.dev/155)
MixedArgument: src/Handler/Router/Router.php#L159
src/Handler/Router/Router.php:159:34: MixedArgument: Argument 1 of ltrim cannot be ''|mixed, expecting string (see https://psalm.dev/030)
PossiblyUndefinedMethod: src/Handler/Router/Router.php#L159
src/Handler/Router/Router.php:159:39: PossiblyUndefinedMethod: Method ReflectionType::getName does not exist (see https://psalm.dev/108)
phpstan (ubuntu-latest, 8.2, locked): src/Command/Run.php#L1
Ignored error pattern #^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$# in path /home/runner/work/trap/trap/src/Command/Run.php was not matched in reported errors.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L71
PHPDoc tag @var for variable $payload has no value type specified in iterable type array.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L71
PHPDoc tag @var for variable $payload has no value type specified in iterable type array.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L73
Call to function is_array() with array will always evaluate to true.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L73
Call to function is_array() with array will always evaluate to true.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L73
Offset 'profile' on array{profile: array, tags: array, app_name: string, hostname: string, date: int<1, max>} on left side of ?? always exists and is not nullable.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L73
Offset 'tags' on array{profile: array, tags: array, app_name: string, hostname: string, date: int<1, max>} on left side of ?? always exists and is not nullable.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L91
Offset 'tags' on array{profile: array, tags: array, app_name: string, hostname: string, date: int<1, max>} on left side of ?? always exists and is not nullable.
phpstan (ubuntu-latest, 8.2, locked): src/Handler/Http/Middleware/XHProfTrap.php#L92
Offset 'profile' on array{profile: array, tags: array, app_name: string, hostname: string, date: int<1, max>} on left side of ?? always exists and is not nullable.