Skip to content

fix(smtp): added frontend attachments endpoint #144

fix(smtp): added frontend attachments endpoint

fix(smtp): added frontend attachments endpoint #144

Triggered via push June 7, 2024 19:08
Status Failure
Total duration 32s
Artifacts
Matrix: phpstan
Matrix: psalm
Fit to window
Zoom out
Zoom in

Annotations

20 errors
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Console/Renderer/Smtp.php#L57
Variable $embeddings in PHPDoc tag @var does not exist.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Mapper/Smtp.php#L94
Argument of an invalid type ArrayAccess<string, Buggregator\Trap\Sender\Frontend\Event\Asset> supplied for foreach, only iterables are supported.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Mapper/Smtp.php#L95
Only booleans are allowed in &&, string given on the right side.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Mapper/VarDump.php#L1
Ignored error pattern #^Call to function base64_decode\(\) requires parameter \#2 to be set\.$# in path /home/runner/work/trap/trap/src/Sender/Frontend/Mapper/VarDump.php was not matched in reported errors.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Mapper/VarDump.php#L1
Ignored error pattern #^Call to function in_array\(\) requires parameter \#3 to be set\.$# in path /home/runner/work/trap/trap/src/Sender/Frontend/Mapper/VarDump.php was not matched in reported errors.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Message/Attachments.php#L14
Property Buggregator\Trap\Sender\Frontend\Message\Attachments::$data type has no value type specified in iterable type array.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Message/Attachments.php#L36
Method Buggregator\Trap\Sender\Frontend\Message\Attachments::jsonSerialize() return type has no value type specified in iterable type array.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Service.php#L79
Argument of an invalid type ArrayAccess<string, Buggregator\Trap\Sender\Frontend\Event\Asset> supplied for foreach, only iterables are supported.
phpstan (ubuntu-latest, 8.2, locked): src/Sender/Frontend/Service.php#L80
Only booleans are allowed in &&, Buggregator\Trap\Sender\Frontend\Event\AttachedFile given on the right side.
phpstan (ubuntu-latest, 8.2, locked): src/Traffic/Message/Multipart/File.php#L139
Variable $matches might not be defined.
InvalidArgument: src/Sender/Console/Renderer/Smtp.php#L88
src/Sender/Console/Renderer/Smtp.php:88:17: InvalidArgument: Argument 3 of Buggregator\Trap\Sender\Console\Support\Tables::renderMultiColumnTable expects array<array-key, array<array-key, scalar>>, but non-empty-list<array{CID: non-empty-string|null, MIME: null|string, Name: null|string, Size: null|string}> provided (see https://psalm.dev/004)
RawObjectIteration: src/Sender/Frontend/Mapper/Smtp.php#L94
src/Sender/Frontend/Mapper/Smtp.php:94:18: RawObjectIteration: Possibly undesired iteration over regular object ArrayAccess (see https://psalm.dev/111)
MixedAssignment: src/Sender/Frontend/Mapper/Smtp.php#L94
src/Sender/Frontend/Mapper/Smtp.php:94:29: MixedAssignment: Unable to determine the type that $asset is being assigned to (see https://psalm.dev/032)
PossiblyNullIterator: src/Sender/Frontend/Service.php#L79
src/Sender/Frontend/Service.php:79:18: PossiblyNullIterator: Cannot iterate over nullable var ArrayAccess<string, Buggregator\Trap\Sender\Frontend\Event\Asset>|null (see https://psalm.dev/097)
MixedAssignment: src/Sender/Frontend/Service.php#L79
src/Sender/Frontend/Service.php:79:36: MixedAssignment: Unable to determine the type that $attachment is being assigned to (see https://psalm.dev/032)
MissingParamType: src/Support/Stream/Base64DecodeFilter.php#L18
src/Support/Stream/Base64DecodeFilter.php:18:28: MissingParamType: Parameter $in has no provided type (see https://psalm.dev/154)
MissingParamType: src/Support/Stream/Base64DecodeFilter.php#L18
src/Support/Stream/Base64DecodeFilter.php:18:33: MissingParamType: Parameter $out has no provided type (see https://psalm.dev/154)
MissingParamType: src/Support/Stream/Base64DecodeFilter.php#L18
src/Support/Stream/Base64DecodeFilter.php:18:40: MissingParamType: Parameter $consumed has no provided type (see https://psalm.dev/154)
MixedArgument: src/Support/Stream/Base64DecodeFilter.php#L23
src/Support/Stream/Base64DecodeFilter.php:23:56: MixedArgument: Argument 1 of stream_bucket_make_writeable cannot be mixed, expecting resource (see https://psalm.dev/030)
MixedAssignment: src/Support/Stream/Base64DecodeFilter.php#L24
src/Support/Stream/Base64DecodeFilter.php:24:13: MixedAssignment: Unable to determine the type that $len is being assigned to (see https://psalm.dev/032)