mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -16,7 +16,7 @@ abstract class AbstractNotification extends Notification implements Notification
|
||||
public function via(object $notifiable): string
|
||||
{
|
||||
/** @var NotificationChannel $notifiable */
|
||||
return get_class($notifiable->provider());
|
||||
return $notifiable->provider()::class;
|
||||
}
|
||||
|
||||
public function toEmail(object $notifiable): MailMessage
|
||||
|
@ -8,15 +8,7 @@
|
||||
|
||||
class DeploymentCompleted extends AbstractNotification
|
||||
{
|
||||
protected Deployment $deployment;
|
||||
|
||||
protected Site $site;
|
||||
|
||||
public function __construct(Deployment $deployment, Site $site)
|
||||
{
|
||||
$this->deployment = $deployment;
|
||||
$this->site = $site;
|
||||
}
|
||||
public function __construct(protected Deployment $deployment, protected Site $site) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
@ -10,12 +10,7 @@ class FailedToDeleteServerFromProvider extends AbstractNotification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
@ -7,12 +7,7 @@
|
||||
|
||||
class ServerDisconnected extends AbstractNotification
|
||||
{
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
@ -7,12 +7,7 @@
|
||||
|
||||
class ServerInstallationFailed extends AbstractNotification
|
||||
{
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
@ -7,12 +7,7 @@
|
||||
|
||||
class ServerInstallationStarted extends AbstractNotification
|
||||
{
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
@ -7,12 +7,7 @@
|
||||
|
||||
class ServerInstallationSucceed extends AbstractNotification
|
||||
{
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function subject(): string
|
||||
{
|
||||
|
@ -7,12 +7,7 @@
|
||||
|
||||
class ServerUpdateFailed extends AbstractNotification
|
||||
{
|
||||
protected Server $server;
|
||||
|
||||
public function __construct(Server $server)
|
||||
{
|
||||
$this->server = $server;
|
||||
}
|
||||
public function __construct(protected Server $server) {}
|
||||
|
||||
public function rawText(): string
|
||||
{
|
||||
|
Reference in New Issue
Block a user