fixed tests
This commit is contained in:
parent
5a97574a86
commit
bea3e493fc
|
@ -22,7 +22,7 @@ class EfzPendingBlock extends Block
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array{member: array<int, string>}
|
||||
* @return array{members: array<int, string>}
|
||||
*/
|
||||
public function data(): array
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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, ',', '.').' €',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
10
phpstan.neon
10
phpstan.neon
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue