TrapHandle: add if(condition)
method to dump only if the condition …
#26
Annotations
8 errors and 1 warning
MissingConstructor:
src/Client/TrapHandle.php#L16
src/Client/TrapHandle.php:16:19: MissingConstructor: Buggregator\Trap\Client\TrapHandle has an uninitialized property Buggregator\Trap\Client\TrapHandle::$values, but no constructor (see https://psalm.dev/073)
|
MixedAssignment:
src/Client/TrapHandle.php#L32
src/Client/TrapHandle.php:32:13: MixedAssignment: Unable to determine the type that $condition is being assigned to (see https://psalm.dev/032)
|
MixedAssignment:
src/Client/TrapHandle.php#L35
src/Client/TrapHandle.php:35:9: MixedAssignment: Unable to determine the type that $this->haveToSend is being assigned to (see https://psalm.dev/032)
|
MixedAssignment:
src/Client/TrapHandle.php#L73
src/Client/TrapHandle.php:73:43: MixedAssignment: Unable to determine the type that $value is being assigned to (see https://psalm.dev/032)
|
InvalidReturnType:
src/Client/TrapHandle.php#L81
src/Client/TrapHandle.php:81:16: InvalidReturnType: The declared return type 'array<string, array{args?: array<array-key, mixed>, class?: class-string, file?: non-empty-string, function?: non-empty-string, line?: int<0, max>, object?: object, type?: non-empty-string}>' for Buggregator\Trap\Client\TrapHandle::stackTrace is incorrect, got 'list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}>' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Client/TrapHandle.php#L109
src/Client/TrapHandle.php:109:16: InvalidReturnStatement: The inferred type 'list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}>' does not match the declared return type 'array<string, array{args?: array<array-key, mixed>, class?: class-string, file?: non-empty-string, function?: non-empty-string, line?: int<0, max>, object?: object, type?: non-empty-string}>' for Buggregator\Trap\Client\TrapHandle::stackTrace (see https://psalm.dev/128)
|
InternalMethod:
src/functions.php#L22
src/functions.php:22:16: InternalMethod: The method Buggregator\Trap\Client\TrapHandle::fromArray is internal to Buggregator\Trap but called from \trap (see https://psalm.dev/175)
|
Psalm Validation (PHP 8.2, OS ubuntu-latest)
Process completed with exit code 2.
|
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/
|