Fix psalm, clear psalm-baseline.yaml #184
Annotations
6 errors and 2 warnings
InvalidArgument:
src/Traffic/Message/Multipart/Field.php#L31
src/Traffic/Message/Multipart/Field.php:31:25: InvalidArgument: Argument 1 of Buggregator\Trap\Traffic\Message\Multipart\Field::__construct expects array<non-empty-string, non-empty-list<string>>, but array<non-empty-string, list<string>> provided (see https://psalm.dev/004)
|
LessSpecificImplementedReturnType:
src/Traffic/Message/Multipart/Field.php#L35
src/Traffic/Message/Multipart/Field.php:35:16: LessSpecificImplementedReturnType: The inherited return type 'array{headers: array<non-empty-string, non-empty-list<string>>, name?: string}' for Buggregator\Trap\Traffic\Message\Multipart\Part::jsonSerialize is more specific than the implemented return type for Buggregator\Trap\Traffic\Message\Multipart\Field::jsonserialize 'array{headers: array<non-empty-string, list<string>>, name?: string, value: string}' (see https://psalm.dev/166)
|
MixedArgumentTypeCoercion:
src/Traffic/Parser/Http.php#L44
src/Traffic/Parser/Http.php:44:45: MixedArgumentTypeCoercion: Argument 1 of Psr\Http\Message\ServerRequestInterface::withHeader expects string, but parent type array-key provided (see https://psalm.dev/194)
|
MixedArgumentTypeCoercion:
src/Traffic/Parser/Http.php#L267
src/Traffic/Parser/Http.php:267:38: MixedArgumentTypeCoercion: Argument 1 of Buggregator\Trap\Traffic\Message\Multipart\Part::create expects array<non-empty-string, non-empty-list<non-empty-string>>, but parent type array<array-key, non-empty-list<non-empty-string>> provided (see https://psalm.dev/194)
|
InvalidArgument:
src/Traffic/Parser/Smtp.php#L103
src/Traffic/Parser/Smtp.php:103:22: InvalidArgument: Argument 1 of Buggregator\Trap\Traffic\Message\Multipart\Field::__construct expects array<non-empty-string, non-empty-list<string>>, but array<non-empty-string, list<string>> provided (see https://psalm.dev/004)
|
Psalm Validation (PHP 8.2, OS ubuntu-latest)
Process completed with exit code 2.
|
Psalm Validation (PHP 8.2, OS ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
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/
|