TrapHandle: add once()
and times()
method to limit count of dumps;
#27
Annotations
10 errors and 1 warning
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)
|
InvalidArrayOffset:
src/Client/TrapHandle.php#L53
src/Client/TrapHandle.php:53:19: InvalidArrayOffset: Cannot access value on variable using offset value of '0', expecting string (see https://psalm.dev/115)
|
MixedAssignment:
src/Client/TrapHandle.php#L100
src/Client/TrapHandle.php:100:43: MixedAssignment: Unable to determine the type that $value is being assigned to (see https://psalm.dev/032)
|
InvalidReturnType:
src/Client/TrapHandle.php#L108
src/Client/TrapHandle.php:108: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#L135
src/Client/TrapHandle.php:135: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)
|
PropertyTypeCoercion:
src/Client/TrapHandle/Counter.php#L17
src/Client/TrapHandle/Counter.php:17:9: PropertyTypeCoercion: Buggregator\Trap\Client\TrapHandle\Counter::$counters expects 'array<non-empty-string, int<0, max>>', parent type 'non-empty-array<string, int<0, max>>' provided (see https://psalm.dev/198)
|
PropertyTypeCoercion:
src/Client/TrapHandle/Counter.php#L20
src/Client/TrapHandle/Counter.php:20:13: PropertyTypeCoercion: Buggregator\Trap\Client\TrapHandle\Counter::$counters expects 'array<non-empty-string, int<0, max>>', parent type 'non-empty-array<string, int<0, max>>' provided (see https://psalm.dev/198)
|
InternalMethod:
src/functions.php#L22
src/functions.php:22:16: InternalMethod: The method Buggregator\Trap\Client\TrapHandle::fromArray is internal to Buggregator 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/
|