Add Larastan level 7 analysis
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
This commit is contained in:
@@ -21,9 +21,9 @@ class NotifyTelegramAboutContactMessage implements ShouldQueue
|
||||
|
||||
protected string $userAgent;
|
||||
|
||||
protected string $email;
|
||||
protected ?string $email;
|
||||
|
||||
protected string $phone;
|
||||
protected ?string $phone;
|
||||
|
||||
public function __construct(string $name, string $message, string $ip, string $userAgent, ?string $email = null, ?string $phone = null)
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class NotifyTelegramAboutContactMessage implements ShouldQueue
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
$email = $this->email ?? '–';
|
||||
$phone = $this->phone ?? '–';
|
||||
|
||||
Reference in New Issue
Block a user