for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Backup\Notifications\Senders;
use Illuminate\Mail\Message;
use Spatie\Backup\Notifications\BaseSender;
class Mail extends BaseSender
{
/** @var \Illuminate\Contracts\Mail\Mailer */
protected $mailer;
/** @var array */
protected $config;
/**
* @param \Illuminate\Contracts\Mail\Mailer $mailer
* @param \Illuminate\Contracts\Config\Repository $config
*/
public function __construct($mailer, $config)
$this->config = $config->get('laravel-backup.notifications.mail');
$config->get('laravel-backup.notifications.mail')
*
array
$config
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->mailer = $mailer;
}
public function send()
$this->mailer->raw($this->message, function (Message $message) {
$message
->subject($this->subject)
->from($this->config['from'])
->to($this->config['to']);
});
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..