Page MenuHomePhabricator

Make omitting "value" from a transaction description an explicit error
ClosedPublic

Authored by epriestley on Apr 27 2020, 8:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 7:57 AM
Unknown Object (File)
Thu, Jun 4, 12:56 AM
Unknown Object (File)
Jan 9 2026, 11:28 AM
Unknown Object (File)
Dec 2 2025, 12:33 PM
Unknown Object (File)
Nov 23 2025, 11:26 AM
Unknown Object (File)
Nov 22 2025, 7:24 AM
Unknown Object (File)
Nov 17 2025, 1:03 PM
Unknown Object (File)
Nov 4 2025, 10:58 PM
Subscribers
None

Details

Summary

See PHI1710. Until D21044, some transactions could omit "value" and apply correctly. This now throws an exception when accessing $xaction['value']. All transactions are expected to have a "value" key, so require it explicitly rather than implicitly.

Test Plan

Submitted a transaction with a "type" but no "value". After D21044, got a language-level exception. After this change, got an explicit exception.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable