Skip to content

fix: make optional DomesticTransaction properties nullable - #20

Open
martenb wants to merge 1 commit into
contributte:masterfrom
martenb:fix/transaction-uninitialized-properties
Open

fix: make optional DomesticTransaction properties nullable#20
martenb wants to merge 1 commit into
contributte:masterfrom
martenb:fix/transaction-uninitialized-properties

Conversation

@martenb

@martenb martenb commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

toArray() on a valid minimal transaction (only mandatory fields set) threw "Typed property must not be accessed before initialization" for optional properties without setters called, crashing PaymentService::sendPayments(). Null values are already skipped by ExportXmlGenerator, so XML output is unchanged.

toArray() on a valid minimal transaction (only mandatory fields set)
threw "Typed property must not be accessed before initialization" for
optional properties without setters called, crashing
PaymentService::sendPayments(). Null values are already skipped by
ExportXmlGenerator, so XML output is unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant