Skip to content

Commit c3fac91

Browse files
committed
Fix LedgerAccount allowed_document_types type to accept bool
The Moneybird API can return a boolean for allowed_document_types instead of an array. Updated the type from ?array to array|bool|null to handle both cases. Fixes TypeError in tests with PHP 8.2+ prefer-lowest.
1 parent 57707cc commit c3fac91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Api/LedgerAccounts/LedgerAccount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515
public readonly ?string $account_type = null,
1616
public readonly ?string $account_id = null,
1717
public readonly ?bool $parent = null,
18-
public readonly ?array $allowed_document_types = null,
18+
public readonly array|bool|null $allowed_document_types = null,
1919
public readonly ?string $description = null,
2020
public readonly ?string $created_at = null,
2121
public readonly ?string $updated_at = null,

0 commit comments

Comments
 (0)