From 68c687affdca245bf9ec1bf63575c2631e402e09 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 2 Sep 2023 11:12:11 +0200 Subject: [PATCH] Fix call to undefined method PhutilJSON::encodeAsObject() Summary: Replace call to undefined method `PhutilJSON::encodeAsObject()` with existing `PhutilJSON::encodeFormatted()` ``` EXCEPTION: (Error) Call to undefined method PhutilJSON::encodeAsObject() at [/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php:68] ``` Closes T15603 Test Plan: Grep and read the code in https://we.phorge.it/source/arcanist/browse/master/src/parser/PhutilJSON.php Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15603 Differential Revision: https://we.phorge.it/D25391 --- .../xaction/PhabricatorEditEngineDefaultTransaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php b/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php index 7b980cdb1a..38011058b6 100644 --- a/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php +++ b/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php @@ -65,7 +65,7 @@ final class PhabricatorEditEngineDefaultTransaction return id(new PhutilJSON())->encodeAsList($default_value); } - return id(new PhutilJSON())->encodeAsObject($default_value); + return id(new PhutilJSON())->encodeFormatted($default_value); } }