Skip to content

Commit 69ad84b

Browse files
committed
AC-13253::Add Strict Type Check for Parameter
1 parent 8585b2f commit 69ad84b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Email/Model/Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Transport implements TransportInterface
123123
public function __construct(
124124
EmailMessageInterface $message,
125125
ScopeConfigInterface $scopeConfig,
126-
LoggerInterface $logger = null
126+
?LoggerInterface $logger = null
127127
) {
128128
$this->isSetReturnPath = (int) $scopeConfig->getValue(
129129
self::XML_PATH_SENDING_SET_RETURN_PATH,

lib/internal/Magento/Framework/Mail/EmailMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function toString(): string
309309
* @param array $addressList
310310
* @return array
311311
*/
312-
private function convertAddressListToAddressArray($addressList): array
312+
private function convertAddressListToAddressArray(array $addressList): array
313313
{
314314
return array_map(function ($address) {
315315
return $this->addressFactory->create([

0 commit comments

Comments
 (0)