mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
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
This commit is contained in:
parent
69c64c1e83
commit
68c687affd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue