Add MailToFile Sender #274
Annotations
8 errors and 1 warning
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm:
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)
|
🔍 Run static analysis using vimeo/psalm
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading