fixed tests

This commit is contained in:
philipp lang 2022-11-17 02:18:57 +01:00
parent 5a97574a86
commit bea3e493fc
4 changed files with 5 additions and 12 deletions

View File

@ -22,7 +22,7 @@ class EfzPendingBlock extends Block
}
/**
* @return array{member: array<int, string>}
* @return array{members: array<int, string>}
*/
public function data(): array
{

View File

@ -4,6 +4,9 @@ namespace App\Home\Blocks;
abstract class Block
{
/**
* @return array<array-key, mixed>
*/
abstract protected function data(): array;
abstract protected function title(): string;

View File

@ -18,7 +18,7 @@ class MemberPaymentBlock extends Block
return [
'members' => $members,
'total_members' => Member::count(),
'amount' => number_format($amount->nr / 100, 2, ',', '.').' €',
'amount' => number_format((int) $amount->nr / 100, 2, ',', '.').' €',
];
}

View File

@ -185,16 +185,6 @@ parameters:
count: 1
path: app/Http/Resources/UserResource.php
-
message: "#^Method App\\\\Http\\\\Views\\\\HomeView\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: app/Http/Views/HomeView.php
-
message: "#^Method App\\\\Http\\\\Views\\\\MemberTriesResource\\:\\:toArray\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: app/Http/Views/MemberTriesResource.php
-
message: "#^Method App\\\\Http\\\\Views\\\\MemberView\\:\\:index\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#"
count: 1