Skip to content

Commit 3d7630b

Browse files
authored
Merge pull request #12130 from nextcloud/docs/json-response-encode-flags
feat(developer): Document new encode flags for JSONResponse
2 parents 5e3d014 + 7f31f70 commit 3d7630b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Front-end changes
3333

3434
Clickable area
3535
^^^^^^^^^^^^^^
36-
The size of the CSS variable ``--clickable-area`` variable has shrunk from ``44px`` to ``34px``.
36+
The size of the CSS variable ``--clickable-area`` variable has shrunk from ``44px`` to ``34px``.
3737
This will result in several regressions and paper-cuts in your app that will need to be manually fixed.
3838
It's recommended to:
3939

@@ -46,8 +46,8 @@ It's recommended to:
4646

4747
Line height
4848
^^^^^^^^^^^
49-
The ``--default-line-height`` variable has changed from ``24px``` to ``1.5`` for the ``--default-font-size`` this
50-
means that the actual value in pixel will go from 24 to 22.5. Although this is a slight change, it's recommended
49+
The ``--default-line-height`` variable has changed from ``24px``` to ``1.5`` for the ``--default-font-size`` this
50+
means that the actual value in pixel will go from 24 to 22.5. Although this is a slight change, it's recommended
5151
to check for visual regressions in your app.
5252

5353

@@ -194,6 +194,7 @@ Added APIs
194194
- ``OCP\AppFramework\Bootstrap\IRegistrationContext::registerTaskProcessingTaskType()`` was added to allow registering task processing task types
195195
- ``OCP\Files\IRootFolder::getAppDataDirectoryName()`` was added to allow getting the name of the app data directory
196196
- ``OCP\Security\IHasher::validate()`` should return true if the passed string is a valid hash generated by ``OCP\Security\IHasher::hash()``
197+
- ``OCP\AppFramework\Http\JSONResponse()`` constructor now supports passing additional ``json_encode`` flags, see https://www.php.net/manual/en/function.json-encode.php for details
197198

198199
Changed APIs
199200
^^^^^^^^^^^^

0 commit comments

Comments
 (0)