Various phpstan fixes [skip ci]

This commit is contained in:
James Cole
2025-01-04 08:42:06 +01:00
parent d4942efd8e
commit c43b37baef
34 changed files with 43 additions and 1229 deletions

View File

@@ -46,12 +46,10 @@ class UserInvitation extends Notification
use Queueable;
private InvitedUser $invitee;
private OwnerNotifiable $owner;
public function __construct(OwnerNotifiable $owner, InvitedUser $invitee)
public function __construct(InvitedUser $invitee)
{
$this->invitee = $invitee;
$this->owner = $owner;
}
/**

View File

@@ -45,13 +45,11 @@ class UserRegistration extends Notification
{
use Queueable;
private OwnerNotifiable $owner;
private User $user;
public function __construct(OwnerNotifiable $owner, User $user)
public function __construct( User $user)
{
$this->user = $user;
$this->owner = $owner;
}
/**

View File

@@ -36,13 +36,6 @@ class OwnerTestNotificationEmail extends Notification
{
use Queueable;
private OwnerNotifiable $owner;
public function __construct(OwnerNotifiable $owner)
{
$this->owner = $owner;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -40,13 +40,6 @@ class OwnerTestNotificationNtfy extends Notification
{
use Queueable;
public OwnerNotifiable $owner;
public function __construct(OwnerNotifiable $owner)
{
$this->owner = $owner;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*

View File

@@ -40,13 +40,6 @@ class OwnerTestNotificationPushover extends Notification
{
use Queueable;
private OwnerNotifiable $owner;
public function __construct(OwnerNotifiable $owner)
{
$this->owner = $owner;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -38,13 +38,6 @@ class OwnerTestNotificationSlack extends Notification
{
use Queueable;
private OwnerNotifiable $owner;
public function __construct(OwnerNotifiable $owner)
{
$this->owner = $owner;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -36,13 +36,6 @@ class UserTestNotificationEmail extends Notification
{
use Queueable;
private User $user;
public function __construct(User $user)
{
$this->user = $user;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -40,13 +40,6 @@ class UserTestNotificationNtfy extends Notification
{
use Queueable;
public User $user;
public function __construct(User $user)
{
$this->user = $user;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -40,13 +40,6 @@ class UserTestNotificationPushover extends Notification
{
use Queueable;
private User $user;
public function __construct(User $user)
{
$this->user = $user;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/

View File

@@ -38,13 +38,6 @@ class UserTestNotificationSlack extends Notification
{
use Queueable;
private User $user;
public function __construct(User $user)
{
$this->user = $user;
}
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/