This commit is contained in:
philipp lang 2025-03-30 21:52:17 +02:00
parent 2a5f4832e1
commit 6683990755
6 changed files with 6 additions and 20 deletions
app
Invoice/Actions
Mailgateway/Types
Payment
Subactivity.php
packages
phpstan.neon

View File

@ -39,7 +39,7 @@ class MassStoreAction
foreach ($memberGroup as $members) { foreach ($memberGroup as $members) {
$invoice = Invoice::createForMember($members->first(), $members, $year); $invoice = Invoice::createForMember($members->first(), $members, $year);
$invoice->save(); $invoice->save();
$invoice->positions()->createMany($invoice->positions); $invoice->positions()->createMany($invoice->positions->toArray());
$invoices->push($invoice->fresh('positions')); $invoices->push($invoice->fresh('positions'));
} }

View File

@ -68,9 +68,9 @@ abstract class Type
} }
/** /**
* @return array<string, array<string, mixed>> * @return mixed
*/ */
public function toResource(): array public function toResource()
{ {
return [ return [
'cls' => get_class($this), 'cls' => get_class($this),
@ -93,8 +93,8 @@ abstract class Type
} }
$this->list($name, $domain) $this->list($name, $domain)
->filter(fn ($listEntry) => $results->doesntContain(fn ($r) => $r->is($listEntry))) ->filter(fn ($listEntry) => $results->doesntContain(fn ($r) => $r->is($listEntry)))
->each(fn ($listEntry) => $this->remove($name, $domain, $listEntry->email)); ->each(fn ($listEntry) => $this->remove($name, $domain, $listEntry->email));
} }
/** /**

View File

@ -14,9 +14,6 @@ class Subscription extends Model
/** @use HasFactory<SubscriptionFactory> */ /** @use HasFactory<SubscriptionFactory> */
use HasFactory; use HasFactory;
/**
* @var array<int, string>
*/
public $fillable = ['name', 'fee_id']; public $fillable = ['name', 'fee_id'];
public function getAmount(): int public function getAmount(): int

View File

@ -16,9 +16,6 @@ class Subactivity extends Model
use HasNamiField; use HasNamiField;
use Sluggable; use Sluggable;
/**
* @var array<int, string>
*/
public $fillable = ['is_age_group', 'is_filterable', 'slug', 'name', 'nami_id']; public $fillable = ['is_age_group', 'is_filterable', 'slug', 'name', 'nami_id'];
/** /**
@ -26,9 +23,6 @@ class Subactivity extends Model
*/ */
public $timestamps = false; public $timestamps = false;
/**
* @var array<string, string>
*/
public $casts = [ public $casts = [
'is_age_group' => 'boolean', 'is_age_group' => 'boolean',
'is_filterable' => 'boolean', 'is_filterable' => 'boolean',

@ -1 +1 @@
Subproject commit 74800de149bf2ca250a17263cfaf59e48b76186f Subproject commit 0c6c948378d6f28636e4de36cc2c3a62c6975440

View File

@ -450,11 +450,6 @@ parameters:
count: 1 count: 1
path: app/Form/Fields/NamiField.php path: app/Form/Fields/NamiField.php
-
message: "#^Method App\\\\Fileshare\\\\ConnectionTypes\\\\ConnectionType\\:\\:types\\(\\) should return Illuminate\\\\Support\\\\Collection\\<int, class\\-string\\<App\\\\Fileshare\\\\ConnectionTypes\\\\ConnectionType\\>\\> but returns Illuminate\\\\Support\\\\Collection\\<int, string\\>\\.$#"
count: 1
path: app/Fileshare/ConnectionTypes/ConnectionType.php
- -
message: "#^Call to an undefined method Phake\\\\Proxies\\\\StubberProxy\\:\\:check\\(\\)\\.$#" message: "#^Call to an undefined method Phake\\\\Proxies\\\\StubberProxy\\:\\:check\\(\\)\\.$#"
count: 1 count: 1