Page MenuHomePhorge

Fix call to undefined method PhutilJSON::encodeAsObject()
ClosedPublic

Authored by aklapper on Aug 14 2023, 20:56.
Tags
None
Referenced Files
F3566707: D25391.1744996929.diff
Thu, Apr 17, 17:22
F3552981: D25391.1744915308.diff
Wed, Apr 16, 18:41
F3535454: D25391.1744894178.diff
Wed, Apr 16, 12:49
F3425584: D25391.1744647432.diff
Sun, Apr 13, 16:17
F3367924: D25391.1744204335.diff
Tue, Apr 8, 13:12
F3354085: D25391.1743849379.diff
Fri, Apr 4, 10:36
F3353636: D25391.1743840000.diff
Fri, Apr 4, 08:00
F3350557: D25391.1743770399.diff
Thu, Apr 3, 12:39

Details

Summary

Replace call to undefined method PhutilJSON::encodeAsObject() with existing PhutilJSON::encodeFormatted()

EXCEPTION: (Error) Call to undefined method PhutilJSON::encodeAsObject() at [<phabricator>/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php:68]

Closes T15603

Test Plan

Diff Detail

Repository
rP Phorge
Branch
T15603 (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 753
Build 753: arc lint + arc unit

Event Timeline

Thanks for this. I need a double-check since I'm quite scared by the background of this root problem but fortunately this seems to have just one occurrence, the one you are fixing.

The origin seems this:

https://secure.phabricator.com/D20595

And this in particular:

https://secure.phabricator.com/D20594

Also let's verify XSS and this kind of stuff

Thanks for this change that looks absolutely reasonable.

Please wait a $random_amount_of_time (more than 1 second and less than 1 month) before landing this so we can attract more professssssssional opinions

This revision is now accepted and ready to land.Aug 15 2023, 07:30