Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -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

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{