chore: fix cgl issues flagged by phpstan

This commit is contained in:
Björn Fromme committed 2026-07-10 14:33:09 +02:00
1 parent f47142c465
commit 2f8701c2e0
6 files changed
+50 -111

No files matched your search

+6
View File
@@ -48,6 +48,9 @@ class DatabaseAnonymizer
$this->identitySequence = 0;
}
/**
* @return array{users: int, newsletterConsents: int, newsletterOptInRequests: int, bookingEditDrafts: int}
*/
public function anonymizeAll(int $batchSize = self::DEFAULT_BATCH_SIZE): array
{
if ($batchSize < 1) {
@@ -405,6 +408,9 @@ class DatabaseAnonymizer
return null !== $this->stringOrNull($value);
}
/**
* @param array<string, string> $identity
*/
private function placeholderText(array $identity, string $suffix): string
{
return sprintf('%s-%s', $identity['lastName'], $suffix);