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)
Sat, May 4, 6:47 PM
Unknown Object (File)
Wed, May 1, 12:09 AM
Unknown Object (File)
Wed, Apr 17, 2:53 PM
Unknown Object (File)
Apr 4 2024, 8:37 AM
Unknown Object (File)
Mar 31 2024, 11:33 AM
Unknown Object (File)
Mar 31 2024, 6:50 AM
Unknown Object (File)
Feb 11 2024, 5:58 AM
Unknown Object (File)
Dec 15 2023, 8:40 AM
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
Branch
edit1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24245
Build 33394: Run Core Tests
Build 33393: arc lint + arc unit