Skip to content

Commit 68c687a

Browse files
committed
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 [<phabricator>/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
1 parent 69c64c1 commit 68c687a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function renderDefaultValueAsFallbackText($default_value) {
6565
return id(new PhutilJSON())->encodeAsList($default_value);
6666
}
6767

68-
return id(new PhutilJSON())->encodeAsObject($default_value);
68+
return id(new PhutilJSON())->encodeFormatted($default_value);
6969
}
7070

7171
}

0 commit comments

Comments
 (0)