Skip to content

Commit

Permalink
Merge pull request #156 from wmde/remove-mixed
Browse files Browse the repository at this point in the history
Convert mixed to scalar type
  • Loading branch information
moiikana authored Mar 6, 2024
2 parents 45cb9a7 + 6666fba commit db7c652
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private function validateRawData( array $rawBookingData ): void {
}

/**
* @return array<string, mixed>
* @return array<string, scalar>
*/
public function getLegacyData(): array {
$result = [];
Expand Down
4 changes: 2 additions & 2 deletions src/Domain/Model/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getLegacyData(): LegacyPaymentData {
abstract protected function getPaymentName(): string;

/**
* @return array<string,mixed>
* @return array<string,scalar>
*/
abstract protected function getPaymentSpecificLegacyData(): array;

Expand All @@ -59,7 +59,7 @@ public function getInterval(): PaymentInterval {
}

/**
* @return array<string,mixed> Array containing all relevant payment values to display in user frontends
* @return array<string,scalar> Array containing all relevant payment values to display in user frontends
*/
public function getDisplayValues(): array {
return [
Expand Down
4 changes: 2 additions & 2 deletions src/UseCases/GetPayment/GetPaymentUseCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
/**
* @param int $paymentId (not a donation ID!)
*
* @return array<string, mixed>
* @return array<string, scalar>
*
*/
public function getPaymentDataArray( int $paymentId ): array {
Expand Down Expand Up @@ -89,7 +89,7 @@ private function createExtendedLegacyData( LegacyPaymentData $legacyData, Iban $
* @param Payment $payment
* @param Iban $iban
*
* @return array<string,mixed>
* @return array<string,scalar>
*/
private function createExtendedPaymentFieldArray( Payment $payment, Iban $iban ): array {
$extendedBankData = $this->bankDataGenerator->getBankDataFromIban( $iban );
Expand Down

0 comments on commit db7c652

Please sign in to comment.