update: livewire components

- more phpstan fixes
This commit is contained in:
HDVinnie
2024-06-23 13:00:31 -04:00
parent 09daf021b0
commit 5ca88559e6
4 changed files with 7 additions and 16 deletions
+3
View File
@@ -34,6 +34,9 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
class BackupPanel extends Component
{
/**
* @var array<string, string>
*/
protected $listeners = ['refreshBackups' => '$refresh'];
/**
+3
View File
@@ -74,6 +74,9 @@ class BlockIpAddress extends Component
}
}
/**
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<BlockedIp>
*/
#[Computed]
final public function ipAddresses(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
{
+1 -1
View File
@@ -69,7 +69,7 @@ class InviteLogSearch extends Component
};
}
final public function updatingGroupBy($value): void
final public function updatingGroupBy(string $value): void
{
$this->sortField = match ($value) {
'user_id' => 'created_at_max',
-15
View File
@@ -325,21 +325,6 @@ parameters:
count: 1
path: app/Http/Livewire/BackupPanel.php
-
message: "#^Property App\\\\Http\\\\Livewire\\\\BackupPanel\\:\\:\\$listeners has no type specified\\.$#"
count: 1
path: app/Http/Livewire/BackupPanel.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BlockIpAddress\\:\\:ipAddresses\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
count: 1
path: app/Http/Livewire/BlockIpAddress.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:updatingGroupBy\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: app/Http/Livewire/InviteLogSearch.php
-
message: "#^Cannot access offset 0 on array\\<int, string\\>\\|false\\.$#"
count: 1