Skip to content

Support multiple emails in one connection #284

Support multiple emails in one connection

Support multiple emails in one connection #284

Triggered via pull request January 19, 2025 10:24
Status Failure
Total duration 36s
Artifacts

static-analysis.yml

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

Annotations

18 errors and 2 warnings
phpstan (ubuntu-latest, 8.2, locked): src/Application.php#L1
Ignored error pattern #^Parameter \$clientInflector of static method Buggregator\\Trap\\Socket\\Server\:\:init\(\) expects \(Closure\(Buggregator\\Trap\\Socket\\Client, int\)\: void\)\|null, Closure\(Buggregator\\Trap\\Socket\\Client, int\)\: Buggregator\\Trap\\Socket\\Client given\.$# in path /home/runner/work/trap/trap/src/Application.php was not matched in reported errors.
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.
MoreSpecificReturnType: src/Sender/MailToFileSender.php#L50
src/Sender/MailToFileSender.php:50:16: MoreSpecificReturnType: The declared return type 'non-empty-string' for Buggregator\Trap\Sender\MailToFileSender::normalizeEmail is more specific than the inferred return type 'null|string' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Sender/MailToFileSender.php#L54
src/Sender/MailToFileSender.php:54:16: LessSpecificReturnStatement: The type 'null|string' is more general than the declared return type 'non-empty-string' for Buggregator\Trap\Sender\MailToFileSender::normalizeEmail (see https://psalm.dev/129)
MoreSpecificReturnType: src/Sender/MailToFileSender.php#L62
src/Sender/MailToFileSender.php:62:16: MoreSpecificReturnType: The declared return type 'list<non-empty-string>' for Buggregator\Trap\Sender\MailToFileSender::fetchDirectories is more specific than the inferred return type 'array<array-key, non-falsy-string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Sender/MailToFileSender.php#L67
src/Sender/MailToFileSender.php:67:13: LessSpecificReturnStatement: The type 'array<array-key, non-falsy-string>' is more general than the declared return type 'list<non-empty-string>' for Buggregator\Trap\Sender\MailToFileSender::fetchDirectories (see https://psalm.dev/129)
PossiblyNullArgument: src/Sender/MailToFileSender.php#L70
src/Sender/MailToFileSender.php:70:71: PossiblyNullArgument: Argument 1 of Buggregator\Trap\Sender\MailToFileSender::normalizeEmail cannot be null, possibly null value provided (see https://psalm.dev/078)
NamedArgumentNotAllowed: src/Traffic/Message/Smtp.php#L228
src/Traffic/Message/Smtp.php:228:16: NamedArgumentNotAllowed: Method array_merge called with named unpacked array array<array-key, array<array-key, Buggregator\Trap\Traffic\Message\Smtp\Contact>> (array with string keys) (see https://psalm.dev/268)
MixedArgument: src/Traffic/Message/Smtp.php#L228
src/Traffic/Message/Smtp.php:228:63: MixedArgument: Argument 1 of Buggregator\Trap\Traffic\Message\Smtp::parseDestinationAddress cannot be mixed, expecting string (see https://psalm.dev/030)
psalm (ubuntu-latest, 8.2, locked)
Process completed with exit code 2.
phpstan (ubuntu-latest, 8.2, locked)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
psalm (ubuntu-latest, 8.2, locked)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636