1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +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:
Andre Klapper 2023-09-02 11:12:11 +02:00
parent 69c64c1e83
commit 68c687affd

View file

@ -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);
}
}