Skip to content

Commit 8f2468d

Browse files
committed
added array type
1 parent 46620cb commit 8f2468d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Form2Email/Handler/FormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FormHandler
1919

2020
protected $formFields;
2121

22-
public function __construct($validation, MailerInterface $handler, $response = 'json')
22+
public function __construct(array $validation, MailerInterface $handler, string $response = 'json')
2323
{
2424
$this->validation = $validation;
2525

src/Form2Email/Handler/MailHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MailHandler
1414
protected $config;
1515
protected $message;
1616

17-
public function __construct($config, Message $message)
17+
public function __construct(array $config, Message $message)
1818
{
1919
$this->config = $config;
2020
$this->message = $message;

src/Form2Email/Mailer/PhpMailerSend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PhpMailerSend implements MailerInterface
1616

1717
protected $password;
1818

19-
public function __construct($config, Message $message)
19+
public function __construct(array $config, Message $message)
2020
{
2121
if (array_key_exists('host', $config)) {
2222
$this->host = $config['host'];

src/Form2Email/Message/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Message
1818

1919
protected $altBody;
2020

21-
public function __construct($message)
21+
public function __construct(array $message)
2222
{
2323
foreach($message as $key => $value) {
2424
$this->$key = $value;

0 commit comments

Comments
 (0)