Skip to content

Commit

Permalink
Make method signature of Mail::send() more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
schmengler committed Feb 19, 2017
1 parent a5c69d0 commit f5ac9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/code/Magento/Contact/Model/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public function __construct(
*
* @param string $replyTo
* @param array $variables
* @return void
*/
public function send($replyTo, $variables)
public function send($replyTo, array $variables)
{
$this->inlineTranslation->suspend();
try {
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Contact/Model/MailInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ interface MailInterface
* @param array $variables Email template variables
* @return void
*/
public function send($replyTo, $variables);
public function send($replyTo, array $variables);
}

0 comments on commit f5ac9f7

Please sign in to comment.